Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with reflection
- Mrrecycle
-
6 posts
Help with reflection
Can someone please tell me how to make an object reflect off of a sprite the same way it will in real life? Thanks!
*edit* Bounce off perpendicular to the sprite of contact I mean.
*edit* Bounce off perpendicular to the sprite of contact I mean.
Last edited by Mrrecycle (June 19, 2018 23:34:52)
- theredviking
-
100+ posts
Help with reflection
Well, you might need to be more specific about what you want the sprite to bounce off from, but if you want it to bounce of when it's on the edge of the screen, here's the code:
when green flag clicked
if on edge, bounce
- deck26
-
1000+ posts
Help with reflection
My project on bouncing off a flat surface may help. https://scratch.mit.edu/projects/99412537/
Last edited by deck26 (June 19, 2018 08:21:28)
- Discussion Forums
- » Help with Scripts
-
» Help with reflection