so when you want to jump just make a script that changes Yy by however much you want your character to jump.I'm not looking for a jumping script, a BOUNCING script. so then when you arent touching a color or something then what it does is it makes the gravity stronger to show you have been falling faster and accelerating. The reason why we don't have a bounce block for every occasion is because the sprite it's bouncing off isn't always straight. so “forever change Y by Yy” so then when it DOES touch the color black then it sets Yy to zero to represent you have touched something. This would be useful in a pinball-style game or any game where you need to have a sprite bounce off of a wall that's a certain color. and then make a script that makes the sprite change by Yy. so we have Yy and lets say if not touching color black then it changes Yy by -1 or whatever gravity strengh you want. just make a variable to remind you that it changes your Y coordinate, leyts called Yy. Make sure that it is moving, or else it won't ever look like its doing anything. Make certain you have ball in hand before you touch the cue ball by. and the define script above, this will allow it to bounce when it is touching the thing you want (make sure the boolean says touching and then the sprite/color that you want). FruitFuzzy wrote:the gravity is pretty simple but i can see it being confusing. player to pocket the solid colored group of balls numbered 1 to 7 or the striped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |