Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a sprite follow a moving clone
- phoenix_unleash
- Scratcher
4 posts
How to make a sprite follow a moving clone
I can't seem to make my sprite follow my moving clone
- TheUltimateHoodie
- Scratcher
1000+ posts
How to make a sprite follow a moving clone
In your moving clone, run this script:
foreverIn your sprite, run this script:
set [x pos v] to (x position)
set [y pos v] to (y position)
end
foreverAlso, congrats on your first post!
go to x: (x pos) y: (y pos)
end
Last edited by TheUltimateHoodie (March 23, 2024 09:40:21)
can somebody give me something to put in my signature
- Eason_9
- Scratcher
1000+ posts
How to make a sprite follow a moving clone
(#2)Note that x pos and y pos should be a “For this sprite only” variable for it to function nvm
…forever…
set [x pos v] to (x position)
set [y pos v] to (y position)
end
Last edited by Eason_9 (March 24, 2024 08:02:52)
*This is my signature, more info on it here! Scroll down by highlighting anywhere and press shift and the down arrow key.
Get your images up to the forums with my shop: Imagif Hosters (for free!)
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
- TheUltimateHoodie
- Scratcher
1000+ posts
How to make a sprite follow a moving clone
deleted
Last edited by TheUltimateHoodie (March 24, 2024 08:06:13)
can somebody give me something to put in my signature
- Discussion Forums
- » Help with Scripts
- » How to make a sprite follow a moving clone