Discuss Scratch

Mrrecycle
Scratcher
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.

Last edited by Mrrecycle (June 19, 2018 23:34:52)

theredviking
Scratcher
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
Scratcher
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)

dariusgamer123
Scratcher
7 posts

Help with reflection

This will work.

if on edge, bounce

No problem.

Powered by DjangoBB