Discuss Scratch

Moonstarofsnowclan
Scratcher
2 posts

Gliding to a moving object

I'm trying to make a game with a cannon that fires, but it won't work. The script I have at this moment is glide pick random 1.75 to 2.5 secs to x:
direction of sprite4 y: (direction of sprite4)
I would really like to know, so the fireball would be like a tracking missile, or whatever they are called.
scubajerry
Scratcher
1000+ posts

Gliding to a moving object

You have to stop using the glide and do something like

When I start as a clone
show
go to [cannon v]
repeat until <touching [Target v]?>
point towards [Target v]
move (5) steps
end
hide
wait (.1) secs//to let the target detect it has been hit.
Delete this clone

Powered by DjangoBB