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

#1 2010-12-02 18:47:53

awsoumace
Scratcher
Registered: 2010-09-24
Posts: 15

I have idea:D

Okay so lately in my scratch class,i have been working on a project called "zombie storm"and it has 2 people called jack and cade and their trying to defeat zombies.
well,i really think cade should follow jack as you know,partners.
anyway,can scratch make"follow sprite one" in the new version of scratch? smile
cause someone might have the same idea.peace:)

Last edited by awsoumace (2010-12-03 16:22:57)

Offline

 

#2 2010-12-02 19:15:56

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: I have idea:D

You could do this:

[forever]
[][point towards [Sprite1]]
[][move (5) steps]
[end forever]

smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-12-02 21:50:06

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I have idea:D

Yep, Jonathanpb's script should do the trick more than adequately. It's quite simple.  smile

Offline

 

#4 2010-12-02 22:04:21

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

Re: I have idea:D

Jonathanpb wrote:

You could do this:

[forever]
[][point towards [Sprite1]]
[][move (5) steps]
[end forever]

smile

And if you didn't want the partner getting too close to Sprite1, you could do something like this

[forever]
    [if distance to [Sprite1] > 20
        [point towards [Sprite1]]
        [move (5) steps]
    [end if]
[end forever]


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

Offline

 

#5 2010-12-02 22:48:14

hdarken
Scratcher
Registered: 2008-06-26
Posts: 1000+

Re: I have idea:D

That would work well too.


http://i.imgur.com/VskBk.png
http://i.imgur.com/tgxVZ.jpg

Offline

 

Board footer