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

#1 2012-11-21 13:31:51

baconface
New Scratcher
Registered: 2012-11-18
Posts: 1

enemies

how do you make an enemy follow you because ive had some problems with it and i dont know what to do

Offline

 

#2 2012-11-21 13:49:32

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: enemies

forever
glide (1) secs to x:  <[x position v] of [thing you want to follow v]> y: <[y position v] of [thing you want to follow v]> // change 1 to how long the enemy waits until it tries to move to the thing u want to follow.

Last edited by KrIsMa (2012-11-21 13:50:23)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#3 2012-11-22 04:26:21

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: enemies

Or a very basic way would be:
forever
wait(delay)
go to (sprite you want to follow)


Be nice, I'm an old lady  wink

Offline

 

#4 2012-11-22 10:51:51

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: enemies

Llamalover wrote:

Or a very basic way would be:

forever
wait [delay] secs
go to [sprite you want to follow v]

Put in scratchblocks.

Anyway, here's another script that you might be interested in using:

when gf clicked
forever
 point towards [sprite-being-followed v]
 move (.5) steps//Change this to make the sprite faster.
I hope that this helps!

Last edited by ErnieParke (2012-11-22 10:52:12)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer