ID:148431
 
mob
NPC3
name = "Red Golie"
icon = 'redg.dmi'
New()
. = ..()
spawn(1)
Myproc()

proc/Myproc()
for(var/a=1,a<=3,a++)
step(src,WEST)
for(var/b=1,b<=3,b++)
step(src,EAST)
spawn(1)
Myproc()

This should be making the mob move West 3 than east 3 but its not, Whats the problem?

~ Jermman
Jermman wrote:
proc/Myproc()
for(var/a=1,a<=3,a++)
step(src,WEST)
for(var/b=1,b<=3,b++)
step(src,EAST)
spawn(1)
Myproc()

This should be making the mob move West 3 than east 3 but its not, Whats the problem?

At a guess: You're not calling sleep(delay) after each step(), so it's moving, but it's moving back into its old position before the tick is over.

Lummox JR
In response to Lummox JR
yes youre right, I got help on chatters.