Fluffamun wrote:
I want to make my Sprite1 follow Sprite2. But I'm pretty new so I need help!
![]()
In what way do you want it to follow it? You can do:
<when green flag clicked>
<forever>
<go to[ sprite1
for it to go right to it, or:
<when green flag clicked>
<forever>
<point towards( sprite1
<move( 10 )steps>
for constant movement or:
<when green flag clicked>
<forever>
<point towards( sprite1
<move( <distance to[ sprite1/100 )steps>
for a smooth motion.
There are a ton of other ways to do it also, so if these aren't what you're looking for, try working around with different mixes of them.
Last edited by AtomicBawm3 (2011-01-17 18:44:08)
Offline
Yeah, what AtomicBawn has scripted is correct. It's one of the basics if you're not doing platform engines and other things that's not 1D, I think.
Offline
I always find the forum scripts hard to understand, here's some pictures of different ways of doing it:
Making it follow the sprite, but stopping before it touches it:
Making it follow the sprite, and it stops when it touches it:
Making it constantly go to the sprite:
Fluid motion:
(Make the number 50 smaller to make it go faster)
Offline