Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Make a sprite glide to another sprite
- Amar_Craft_MCYT
-
New Scratcher
5 posts
Make a sprite glide to another sprite
how can i Make a sprite glide to another sprite?
- deck26
-
Scratcher
1000+ posts
Make a sprite glide to another sprite
You can get the coordinates of another sprite via the sensing block
([ v] of [Sprite1 v])So if the other sprite isn't moving just glide to it. If the sprite is moving and you want to follow it use a loop and point towards the sprite and move n steps in the loop. Only move n steps if at least that far from the sprite (distance to block).
- Egamer104
-
Scratcher
100+ posts
Make a sprite glide to another sprite
glide (1) secs to x: ([X position v] of [your sprite v]) y: ([Y position v] of [your sprite v])hope it helps find that block by scrolling down in sensing.
- Egamer104
-
Scratcher
100+ posts
Make a sprite glide to another sprite
You can get the coordinates of another sprite via the sensing blockaww man you posted it right before me lol([ v] of [Sprite1 v])So if the other sprite isn't moving just glide to it. If the sprite is moving and you want to follow it use a loop and point towards the sprite and move n steps in the loop. Only move n steps if at least that far from the sprite (distance to block).
- Amar_Craft_MCYT
-
New Scratcher
5 posts
Make a sprite glide to another sprite
Thank You! You Helped so Much
- Zelina_Sword
-
Scratcher
12 posts
Make a sprite glide to another sprite
Hi to all!
If I want to glide my sprite, I always use:
If I want to glide my sprite, I always use:
glide () secs to x: (0) y: (0)
Or you could could use random position. I hope it works for you!! :) :D
Last edited by Zelina_Sword (Aug. 17, 2021 13:01:40)
- amazingscratchcoder
-
Scratcher
100+ posts
Make a sprite glide to another sprite
Please don’t necropost
- Discussion Forums
- » Help with Scripts
-
» Make a sprite glide to another sprite