Hi!
I'm programming the Ai of a basic enemy in a sidescroller.
the enemy basically stays in a stand postion (looping a "stand" animation) until at a certain moment it triggers a jump animation and it attacks by jumping forward. then it lands and goes again to the stand anim.
everything works well but I can't find a way of having a perfect control of the moment the jump triggers.
The ideal way would be to have something triggering when the stand animation begins (after the jump). something like a "time marker". So, it would be like saying: once the marker is set wait X seconds and trigger jump. that way I can add some random seconds or control it easier and not rely on the frames of the stand animation.
I guess this is what TIMERS are for, but couldn't make it work. i found it on behaviors but don't have a clue how to use it.