Discuss Scratch

rendered_fox1
Scratcher
19 posts

bounce on sprites

a weapon in my game summons a ball that bounces around the screen using the
if on edge, bounce 
block
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

CHESHT wrote:

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.
i dont want to slowly stop it
residentofquebec
Scratcher
3 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)

Powered by DjangoBB