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

#1 2008-07-04 06:06:02

chril001
Scratcher
Registered: 2008-07-04
Posts: 2

Folowwing sprites

Am making a pacman, where 1 pacman follows another.  How do i get a sprite (pacman) to follow another pacman (sprite) you control?

Offline

 

#2 2008-07-04 09:50:55

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Folowwing sprites

On Green Flag Click
Forever
    point towards pacman
    Repeat Until Distance to Pacman < 100
         Move 10 steps
    end Repeat
end Forever

Note:  Adjust the 100 value to whateve distance you want the following sprite to be.  Also adjust the 10 steps to whatever value you want for the speed of the following sprite.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer