In need > Magnitude reset?
AjBlue
Member Posts: 215
i have 1 actor moving to the right and one to the left, once they have reached a magnitude of 40 or so. i want the to stop (since this is basically right in front of each other) but then they do not continue their course anymore because the magnitude doesn't change from last time the enemy was seen.
how can i set up my scene to make my actors magnitude to say 1000 if there is no target enemy on the scene.
i can't make it back to 0 because my stop rule says if the magnitude is less than say 40 stop, 0 is still less than 40 so i need to make it a number that can't possibly be touched.
how can i set up my scene to make my actors magnitude to say 1000 if there is no target enemy on the scene.
i can't make it back to 0 because my stop rule says if the magnitude is less than say 40 stop, 0 is still less than 40 so i need to make it a number that can't possibly be touched.
Comments
if Magnitude <40 then Move = (actor speed) , otherwise move = 0
or if u don't want to use otherwise, you could do 2 rules,
rule 1 = if Magnitude <40 then Move = (actor speed)
rule 2 = if Magnitude >40 then Move = 0
hope that helps..