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

#1 2008-12-19 12:45:15

kadin22
Scratcher
Registered: 2008-12-11
Posts: 1

sprites following each other

I tried to enter the same coordinates but all they did was stay the same distance from each other

How do I make Spite 2 follow the tracks of Sprite 1?

How do you make Sprite 1 go from one side of the stage to the other in one movement?

thanks,
Kadin

Offline

 

#2 2008-12-19 15:03:14

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: sprites following each other

Sprite 2:
<forever>
<point towards( Sprite 1
<move( speed )steps> [/blocks]
Speed: Higher = faster

Sprite 1
<forever>
<glide( speed2 )secs to x sad  240 )y sad  <y position>
<glide( speed2 )secs to x sad  -240 )y sad  <y position> [/blocks]
Speed2: Lower = fater

Offline

 

Board footer