

This mimics the behavior of the if on edge, bounce block in Scratch. 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. In summary, the code checks if a sprite is touching the stage edges, determines the nearest edge, calculates a bounce direction away from that edge, updates the sprites direction, and keeps the sprite within the stage boundaries. of code will check if the ball is touching the Paddle and bounce back. 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 objective is to build a Tennis game in Scratch where one Player plays against. If the sprite is touching the selected object, the block returns true if it is not, it returns false. The block checks if its sprite is touching the mouse-pointer, edge, or another sprite (a reporter block which returns the sprites name, usually a variable can be used). It can refer to air quality, water quality, risk of getting respiratory disease or cancer. 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. The Touching () block is a sensing block and a boolean block. The health of a city has many different factors.

and then make a script that makes the sprite change by Yy. Moving Paddles The green paddle is going to move across the screen, when it hits the edge we will get it to move back the other way. If we test this, we will see that the balls fall from the sky and then are deleted when they hit the edge.

so we have Yy and lets say if not touching color black then it changes Yy by -1 or whatever gravity strengh you want. If we touch the edge of the of the screen, we need to delete the clone. 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.
