playMaker

Author Topic: Attack animation won't trigger [SOLVED]  (Read 1658 times)

jayf

  • Playmaker Newbie
  • *
  • Posts: 40
Attack animation won't trigger [SOLVED]
« 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.
« Last Edit: June 12, 2014, 11:03:00 PM by jayf »

1982

  • Junior Playmaker
  • **
  • Posts: 71
Re: Attack animation won't trigger
« Reply #1 on: June 12, 2014, 11:06:00 AM »
You must tick the "Every Frame" on :)

jayf

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Attack animation won't trigger [SOLVED]
« Reply #2 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 :).