I am working on my Boss character for a project in the Blender Game Engine. He has an attack animation that plays when he gets within range of the player (detected via a near sensor.) However, I would like the attack animation on the boss to stop playing and return to the first frame if the player exits the near sensor's range. Is this possible to do with logic bricks, and if so, how?
(Sorry if I´m doing this wrong)
I did this because I could not get the Near Sensor to work. (I replaced it with a Message, (called the "stop" where "Not Near" was and "Start" where the "Near" was)
And so I add 2 new Property one with -1 frame if Start was False. and one with if frame# was less 0 then Assing 1. so it was always 1 if it gos back to zero.
and added to a sensor where the boss is. So if I leave the area then it send the stop message and then Boss goes back to the starting position.
The only problem now is that if I leave the area and if the Boss is on Frame 30 And I go back then he starts on frame 1. But I will solve it.