Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a sprite bounce off of another sprite?
- zoviarTorty
-
Scratcher
7 posts
How to make a sprite bounce off of another sprite?
I know that you can just do this:
but is there any other way (without randomness) ?
when green flag clicked
forever
change [ v] by (0.1)
wait (0.04) secs
end
when green flag clicked
forever
if <touching [ sprite 2] ?> then
point in direction ( (pick random (45) to (135))
end
move (v) steps
end
but is there any other way (without randomness) ?
Last edited by zoviarTorty (March 16, 2025 19:31:54)
- -Pseudonym
-
New Scratcher
1 post
How to make a sprite bounce off of another sprite?
probably, yes but what are you using it for
- Wolfpack2015
-
Scratcher
6 posts
How to make a sprite bounce off of another sprite?
Yes i know how
when green flag clickedand
forever
change [ vv] by (0.1)
end
when green flag clicked
forever
if <touching [Sprite 2 v] ?> then
turn cw (180) degrees
end
move (v) steps
end
- zoviarTorty
-
Scratcher
7 posts
How to make a sprite bounce off of another sprite?
_
Last edited by zoviarTorty (Dec. 15, 2025 17:54:20)
- zoviarTorty
-
Scratcher
7 posts
How to make a sprite bounce off of another sprite?
-Pseudonym, If I know how to do this, I will basically be able to do anything. This is as useful as learning how to make a scrolling platformer.
Last edited by zoviarTorty (May 19, 2025 06:23:54)
- Axolotlboy17171
-
Scratcher
2 posts
How to make a sprite bounce off of another sprite?
IDK if this will help, but maybe this
when green flag clicked
forever
if <touching [ sprite] ?> then
point towards [ sprite]
point in direction ( (pick random (((direction) - (some value)) * (-1)) to (((direction) + (some value)) * (-1))))
end
end
Last edited by Axolotlboy17171 (May 20, 2025 21:23:06)
- Discussion Forums
- » Help with Scripts
-
» How to make a sprite bounce off of another sprite?