How do I make the ball bounce off the walls? I tried and tried and am stuck. I have to make it for class.
Please help me understand how to bounce the ball off the walls right way.
Offline
melikanikole wrote:
How do I make the ball bounce off the walls? I tried and tried and am stuck. I have to make it for class.
Please help me understand how to bounce the ball off the walls right way.
[blocks]<if on edge, bounce>[/blocks]
Offline
then how can i make the ball go slow bouncing to make it look like a real ball would do. i made it work but it bounce too fast. i tried http://scratch.mit.edu/forums/viewtopic.php?id=22826#req_message
Offline
Say that you have a sprite that is a vertical wall somewhere on the screen.
[When green flag clicked)
[forever if <<touching [Sprite that is a wall]> or <touching [edge]>>
[][point in direction [(direction) + (180)]
[][repeat until <<touching [Sprite that is a wall]> or <touching [edge]>>
[][][move [choose an amount] steps]
To see it well, click the quote button. There's a bug.
Last edited by Jonathanpb (2009-09-13 01:52:39)
Offline