Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Bouncing off sprites
- Eugene_He123
-
38 posts
Bouncing off sprites
How would i make sprites bounce of each other like if i wanted a ball sprite to jump off a wall sprite the same way as what a ball sprite would do to the edge.
- HYTHON123
-
19 posts
Bouncing off sprites
when green flag clicked
forever
if <key [left arrow] pressed?> then
glide (0.1) secs to (x position - 13) (y position)
end
if <touching [Sprite3]> then
bounce (2)
end
if <key [right arrow] pressed?> then
glide (0.1) secs to (x position + 13) (y position)
end
if <touching [Sprite3]> then
bounce
end
end
- deck26
-
1000+ posts
Bouncing off sprites
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/99412537
A natural bounce angle depends on the angle of approach and the angle of the surface being bounced off.
A natural bounce angle depends on the angle of approach and the angle of the surface being bounced off.
- Discussion Forums
- » Help with Scripts
-
» Bouncing off sprites