Discuss Scratch

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:
forever
set [x pos v] to (x position)
set [y pos v] to (y position)
end
In your sprite, run this script:
forever
go to x: (x pos) y: (y pos)
end
Also, congrats on your first post!

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

TheUltimateHoodie wrote:

(#2)

forever
set [x pos v] to (x position)
set [y pos v] to (y position)
end

Note that x pos and y pos should be a “For this sprite only” variable for it to function nvm

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
phoenix_unleash
Scratcher
4 posts

How to make a sprite follow a moving clone

ok thanks
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

Powered by DjangoBB