Discuss Scratch

YaBoi_Kenny
Scratcher
50 posts

Making a sprite follow the edge of another sprite (the sprite also rotates)

How would you get a sprite to follow another sprite's edge but the sprite also rotate

I'm trying to get a green lazer sprite to get on the tip of a green ship for this Asteroids mod.

Last edited by YaBoi_Kenny (Dec. 16, 2021 12:28:19)

Burnt-Butter-Toast
Scratcher
78 posts

Making a sprite follow the edge of another sprite (the sprite also rotates)

I'm not too sure by what you mean to follow them on the edge but there is a way to look towards another sprite.
when green flag clicked
forever
point towards [Sprite2 v]
end

when green flag clicked
Forget Toast
move (10) steps
Put Butter
YaBoi_Kenny
Scratcher
50 posts

Making a sprite follow the edge of another sprite (the sprite also rotates)

I found out myself now thx. But you saw how the laser was in the middle of the ship, right? I thought I had to increase x and y, but it went off of the ship. I found out to use the move command, and moved it by 50.

Last edited by YaBoi_Kenny (Dec. 16, 2021 23:18:38)

Powered by DjangoBB