Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Bouncing Equation
- LightAxe2402
-
Scratcher
12 posts
Bouncing Equation
All right So right now i am trying to make a ball that bounces around on the screen but am having a hard time coming up with the equation needed please help with this is you know what the equation would be. Thank you for reading this as well!!!! 

- stickfiregames
-
Scratcher
1000+ posts
Bouncing Equation
You can bounce off the edge of the screen using
Bouncing off other objects is a bit more complicated, but I made these blocks which can help. The basic script I used is:
if on edge, bounce
Bouncing off other objects is a bit more complicated, but I made these blocks which can help. The basic script I used is:
turn right (((angle of line to bounce off :: grey) - (direction)) * (2)) degrees
- DanielDanielGG
-
Scratcher
5 posts
Bouncing Equation
_
Last edited by DanielDanielGG (Oct. 22, 2021 22:46:32)
- Discussion Forums
- » Help with Scripts
-
» Bouncing Equation



