How DO you make a ball bounce????????
Offline
pick it up, push it to the ground with force and it should bounce
On scratch, maybe try messing around with "when touching border" (a sprite on the edge of the screen) "turn 90 degrees and move so many places" so that it appears to have come off the wall from an angle.
Offline
If you want the ball to bounce off the edges, use the "if on edge, bounce" block.
Another way to do this is to change the direction of the ball:
if (whatever bouncing conditions here - touching sprite, etc)
set (direction) to 180 - direction
Offline
Make it so that when it's touching the colour of the ground, it sets the variable 'Y velocity' to ('Y velocity * -0.8). You can check out this project and look at the scripts as well, if you're stuck
Offline
here's a script for it
put it on the ball
when green flag clicked
forever start
repeat until touching (ground sprite) start
change y by -(amount)
repeat end
repeat (amount) start
change y by (amount)
repeat end
forever end
Offline
I think you should check out TheBajeebas' Basketball project. It has a really nice bouncing system and I'm sure he'd let you use it.
Offline
Freakish wrote:
I think you should check out TheBajeebas' Basketball project. It has a really nice bouncing system and I'm sure he'd let you use it.
![]()
You're a Scratcher! Congrats!
Offline