I need a script that makes a ball bounce off the bottom of the stage, and the bottom only, which I will be using a giant line for the bottom. I can't put "if touching edge" in it, because it has a gravity script and I want it to be realistic. It has to say "if touching bottom". Help?
Offline
My newest project is called bounce. It has the exact scripting you want. just look at the script for the ball, and change the if touching? to the name of ur sprite
LINK: http://scratch.mit.edu/projects/bosox397/500244
Last edited by bosox397 (2009-05-17 15:21:27)
Offline
yeah well u basically asked for something i made already so yah
Offline
http://scratch.mit.edu/projects/yambanshee/371970 might help you as well.
Offline
Here's a way to do it without using extra sprites:
<if><( <y position> <<> -165?(depends how big the ball is) )><if>using directions<point in direction( (( 180 <-> <direction>))<if>using velocities<set{ Y velocity }to( <{ (( <{Y velocity }> <*> -1 )) }>
Offline