How do get it so if a bouncng sprite hits another sprite once it hits the very tip it bounces off. example: You know slime vollyball? How do I get the ball to bounce off the slime?
Offline
Well, a simple way to bounce something off of a horizontal surface is to change the direction that the sprite is pointing by subtracting it from 180 degrees. So if the sprite is coming in with direction 130 before the bounce, then set the new direction to 180-130 = 50 degrees
[blocks]
<when green flag clicked>
<forever>
<if><touching[ Bounce Object
<point in direction( (( 180 <-> <direction> ))
<wait until><< <not> <touching[ Bounce Object >>
<end>
<end>
[/blocks]
Offline