Discuss Scratch

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
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
LightAxe2402
Scratcher
12 posts

Bouncing Equation

Thank you for the help!
Locomule
Scratcher
1000+ posts

Bouncing Equation

If you need to bounce without hitting the edge of the screen, here are the formulas.
DanielDanielGG
Scratcher
5 posts

Bouncing Equation

What is
(angle of line to bounce off)
?
DanielDanielGG
Scratcher
5 posts

Bouncing Equation


_

Last edited by DanielDanielGG (Oct. 22, 2021 22:46:32)

Powered by DjangoBB