Can I make one sprite follow the outline of another?

I have one sprite in the shape of an arc, and I want another to run along the path of the arc. The arc sprite is only as thin as a line, so is there a way to make the sprite stay on the path?

Yes definitely. Just need a bit of info first. Will this outline ever change. 2 is the outline always the same color. 3 share the sprite so I can see the actual costume.

The outline will never change color, but it is changing shape constantly. I’m trying to make one of those aiming games, here’s the link: Snap! Build Your Own Blocks

I have a system in place to make the bomb follow the line (press space), but it’s messy and I want to make it in a different way, so thanks for the help.

I didn’t look at the code, but I clicked the flag a couple times and it seems to be your drawing an arc with pen. Why not if you know every pixel that is contained in the ark, just travel a pixel thin line because you know all the points in the arc.

Ok I see. If we can travel the og arc which you can manually do all you need to do is adjust your path by the stretch

If the shape will always be an arc (doesn’t matter the length or height), you can just use math to figure out the positions instead of following the outline of a sprite.

It’s not being drawn using the pen. It’s just a sprite that’s being stretched. I can even tell without looking at the code, because the ends change thickness.

I posted my second thing after I saw that

seems to be you implemented this but honestly you should prob change the arc visuals.

Aiming Game by avi_shor | Snap! Build Your Own Blocks there seemed to be a lot going on in yours and I don’t know what u want to keep or delete so this is just a much-improved version of exactly what you had. if you want the y of where the bomb lands to be different from where it started lmk

Thanks! This is much better.