Help please! i was wondering how to make a sprite follow after another sprite in an x and y scroller( i want the sprite to transition behind the main sprite as the player changes directions and avoid objects if possible.) when the player has stop i also want the sprite to catch up to the main sprite.
Offline
Use [blocks]<go to front>[/blocks] or [blocks]<go back( )layers>[/blocks]
THese blocks allow the sprite to go back behind other sprites by a certain number of layers or simply stay at the very front with the {go to front} block. I hope that helps!
Offline
Have it point at the player sprite, then have it move towards it. Something I was working on that used Escorts: http://scratch.mit.edu/projects/Magnie/876825 Pretty basic.
Offline
um...sorry but that's not what i meant.
here is a picture representation (i made on ms paint) to somewhat better explain what i mean.
http://yourimagehost.com/is.php?i=46958&img=IMAGE1.jpg
Offline
Ah, yes, set it to player sprite variable x, and y, then minus or add to x or y, depending on the direction. But I'm not fully sure on how to do this.
Offline
Here's a simple method, but it isn't perfect:
Offline
i think that should work. thank you guys for all you help.
Offline
DouresseauB-5 wrote:
um...sorry but that's not what i meant.
here is a picture representation (i made on ms paint) to somewhat better explain what i mean.
http://yourimagehost.com/is.php?i=46958&img=IMAGE1.jpg
You can just put the image in by doing:
[img]http://yourimagehost.com/is.php?i=46958&img=IMAGE1.jpg[/img]
It produces:

Offline