Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jayf on June 12, 2014, 10:41:38 AM

Title: Attack animation won't trigger [SOLVED]
Post 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.
Title: Re: Attack animation won't trigger
Post by: 1982 on June 12, 2014, 11:06:00 AM
You must tick the "Every Frame" on :)
Title: Re: Attack animation won't trigger [SOLVED]
Post by: jayf on June 12, 2014, 11:05:18 PM
Lol that's the one. Thanks! In almost all problems "Every Frame" seems to be the answer :).