Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make an sprite follow another sprite.
- archman998
-
2 posts
How to make an sprite follow another sprite.
I'm trying to make a shooter game, and the arm (holding the gun) will point wherever your mouse pointer is, as well as being connected to the player, if I use ‘Go to player’ in a forever loop, then it will just go to the center of the player and not to the place where it is supposed to be. How do I make it follow the player, but also stay in the place where the arm should be? I'd put an image but I don't know how.
- Theo_1er
-
500+ posts
How to make an sprite follow another sprite.
Last edited by Theo_1er (May 11, 2021 20:04:01)
- archman998
-
2 posts
How to make an sprite follow another sprite.
Thanks everyone! This really helped!
- akosiku
-
14 posts
How to make an sprite follow another sprite.
end
the sprite will now follow the other sprite.
check out my game to see how it works:https://scratch.mit.edu/projects/528037793
Last edited by akosiku (May 12, 2021 05:46:56)
- akosiku
-
14 posts
How to make an sprite follow another sprite.
when green flag clicked
forever
glide 0.3 seconds to (another sprite)
forever
glide 0.3 seconds to (another sprite)
- Discussion Forums
- » Help with Scripts
-
» How to make an sprite follow another sprite.