#How do I make an enemy that only moves to the main actor when the main actor moves?

1 messages · Page 1 of 1 (latest)

dim stump
#

Been searching and coding for a while and can’t seem to find out how.

shell elm
#

this in the enemy:

when object is created
inf. loop
if (main actor) speed > 0.1
execute (self) start chasing (main actor)
or else
execute (self) stop chasing

dim stump
shell elm
#

hm

#

the or else might be

#

replace the or else with:

if (main actor) speed < 0.1
execute (self) stop chasing
execute (self) stop moving

shell elm
dim stump
#

Oh okay

dim stump
shell elm
#

uh

#

maybe make the blocks blue

dim stump
#

How can I make them blue?

#

(I’m new)

shell elm
#

(tap the 🔄)

dim stump
#

Oh okay, what blocks should be blue?

shell elm
#

all

dim stump
#

(I’m going for a walk be back)

shell elm
#

are u in ios?

dim stump
shell elm
#

ohh thats why

#

i'm on android

dim stump
#

That makes a difference?

#

Welp thanks for the help anyways.

shell elm
#

yes

torn mountain
shell elm
torn mountain
shell elm
#

do u have iphone?

torn mountain
shell elm
#

k then, send the script

torn mountain
#

And heres a video on what it looks like

dim stump