This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-03-01 11:29:19

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

How do you make one sprite follow another?

Please tell me a script that allows one sprite to follow another


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#2 2011-03-01 11:43:53

matthew9090
New Scratcher
Registered: 2011-03-01
Posts: 3

Re: How do you make one sprite follow another?

<when green flag clicked>
<forever>
<go to[ sprite you want it to follow
<end>

Offline

 

#3 2011-03-01 13:21:33

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: How do you make one sprite follow another?

I know that
i want it to follow slightly behind not directly at it


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#4 2011-03-01 13:30:50

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: How do you make one sprite follow another?

Try some of the scripts here.

Offline

 

#5 2011-03-01 15:15:16

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: How do you make one sprite follow another?

If you want it to follow a sprite, but not be on top of it all the time, try this:
[blocks]<forever>
<point towards( sprite )>
<move( 5 )steps>
<end>[/blocks]


/* No comment */

Offline

 

#6 2011-03-01 17:43:39

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: How do you make one sprite follow another?

TheSuccessor wrote:

If you want it to follow a sprite, but not be on top of it all the time, try this:
[blocks]<forever>
<point towards( sprite )>
<move( 5 )steps>
<end>[/blocks]

That works, but it goes to the sprite if you don't move it.
Try this one from the scratch wiki:
http://wiki.scratch.mit.edu/images/Sprite_to_Mouse_3.gif
Replace all the "mouse pointer" ones with the sprite name.

Offline

 

#7 2011-03-02 10:52:34

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: How do you make one sprite follow another?

I keep setting it to 00GMT
It keeps jumping back to emt


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#8 2011-03-02 11:06:12

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: How do you make one sprite follow another?

Thank you everyone I have worked it out know


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#9 2011-03-02 11:15:43

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: How do you make one sprite follow another?

muppetds wrote:

I keep setting it to 00GMT
It keeps jumping back to emt

Sorry I put this in the wrong forum


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#10 2011-03-02 12:15:42

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: How do you make one sprite follow another?

muppetds wrote:

muppetds wrote:

I keep setting it to 00GMT
It keeps jumping back to emt

Sorry I put this in the wrong forum

That is noted here. It is called Scratch Time.

Offline

 

Board footer