

They limit the bounce to return within a range of -80 to 80 degrees (this is for a horizontal paddle at the bottom of the screen…You would use different guards for a different paddle) Anyway, this allows the user to control where the ball bounces back by hitting the ball in different spots on the paddle. * I have direction guards to keep the skill shot from making the ball bounce at a bad angle.

This is especially helpful with smaller paddles. 75) or a number greater than 2 if you want it to change more. The difference is then multiplied by 2 to make it greater…You could use a number less than 1 to make the change smaller (like. For example: when I receive point in direction ((180) - (direction)) if then turn cw (((x position) - ( of )) * (2)) degrees if then point in direction (-80 v) end if > then point in direction (80 v) end end OK…so explanation * The first line of code is a standard bounce off a horizontal surface * The next line of code modifies the bounce angle based on how far the ball is away from the center of the paddle. 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.Games are more fun if you can learn skill to control them…I prefer creating a skill shot that allows you to control the rebound by choosing where the ball hits the paddle….

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. 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. 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. FruitFuzzy wrote:the gravity is pretty simple but i can see it being confusing.
