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

#1 2008-02-28 05:17:00

Splattafax
Scratcher
Registered: 2008-02-08
Posts: 12

Yet another question.

How do I make it so that a sprite trails behind an /spriteobject (a tiny bit behind) and always faces in the direction that the sprite/object is facing?


Teachin' Fools Some Basic Rules!

Offline

 

#2 2008-02-28 07:35:50

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Yet another question.

One way would be to have the leading sprite send a broadcast every time that it moves, and use the "Distance To:" block in the following sprite to see how far away the leader is, then move almost that far:

LeadingSprite broadcasts "FollowMe"

FollowingSprite:

When I recieve "FollowMe"
Point Towards (LeadingSprite)
Move [(Distance to: (LeadingSprite) - 5)]

-MrEd

Offline

 

Board footer