with this code in the move proc, i am trying to move the mobs to its initial loc when the mob is three tiles away from that initial position. the mob for brife second appears to be in two places at once. as if it is trying to go to the prosition but can't. any ideas as to what is causing that strange behavior?
blue_ooze
base_state = "blue-ooze"
icon_state = "blue-ooze-standing"
shadow_state = "ooze-shadow"
power = 4
speed = 5
defense = 5
health = 40
max_health = 40
base_speed = 1
abilities = list(new /Ability/EnemyAttack())
var
tempx =0
tempy =0
tempz =0
New()
..()
money = rand(1, 10)
experience = 6
tempx = src.x
tempy = src.y
tempz = src.z
move()
..()
var/g = get_dist(loc,locate(tempx, tempy, tempz))
if(g > 3)
src.Move(locate(tempx, tempy, tempz))