#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)
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
(Sorry back) I tried it and it does not seem to work
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
Still does not work?
i meant in another if block
Still doesn’t? (Forgot to reply)
(tap the 🔄)
Oh okay, what blocks should be blue?
all
are u in ios?
iPhone 11
yes
Hey, you still need help?
yes
Pretty sure i can make it
do u have iphone?
No, but i think it should work with iphone
k then, send the script
Just finished coding it
And heres a video on what it looks like
It worked thank you very much! (Sorry for late response)