Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jayf on June 12, 2014, 10:41:38 AM
-
Hi guys.
I got this monster in my game, that chases the hero once spawned. Sofar I only got 2 states on the monster, I want it to trigger it's attack animation once near enough to the player. As you can see in the screen shot, I used Get Distance and saved the data as "distance_to_tank" and if less the 25 (using the Float Compare Action) it should trigger "target_reached", which should activate State 2 (Attack). Which in turn contains the monsters attack animation. However in preview mode I can see that it can't seem to trigger the "target_reached" event, all though everything else works fine.
-
You must tick the "Every Frame" on :)
-
Lol that's the one. Thanks! In almost all problems "Every Frame" seems to be the answer :).