Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » bounce on sprites
- rendered_fox1
- Scratcher
19 posts
bounce on sprites
a weapon in my game summons a ball that bounces around the screen using the
how can i make it bounce off of sprites just like that
if on edge, bounceblock
how can i make it bounce off of sprites just like that
- CHESHT
- Scratcher
27 posts
bounce on sprites
You could give it gravity, and every time it hits a certain sprite, the momentum decreases and the gravity increases, pulling it down and slowly stopping it.
- rendered_fox1
- Scratcher
19 posts
bounce on sprites
i dont want to slowly stop it You could give it gravity, and every time it hits a certain sprite, the momentum decreases and the gravity increases, pulling it down and slowly stopping it.
- residentofquebec
- Scratcher
4 posts
bounce on sprites
when green flag clicked
forever
if <touching [Wall v] ?> then
turn cw (180) degrees
end
if on edge, bounce
move (6) steps
end
A simple way to bounce the opposite direction upon hitting a sprite other than itself
(may not work at higher speeds)
- Discussion Forums
- » Help with Scripts
- » bounce on sprites