Hi all i have an animated person, it walks and when someone shoots it run, to a certain position. When is in this position i stop the walking.I want to make it walk again when some time is passed. my script is like this
#Script to choose a position
if o["disp"]:
#in my script is the code to choose a position is too large so i wont write it here
#activate the actuator to walk
c.activate(c.actuators["walk"])
#Script of the collision of the node
if o["hit"]:
#i make it stops walking
c.deactivate(c.actuators["walk"])
#Script of the timer
#In the timer, is when i want to make it walk again
#minutes and second is the timer, min and sec is the time i calculate the person #should move
if minutes == min and seconds == sec:
#so it goes to the scrip and make it walk
o["disp"] = True
The enemy walks normally, then it choose a position and the stop walking and start the fire.
My problem is when they have to choose another position, the go to the position, but they dont do the walk animation so ir appears they floating. how can i do to make them walk again