Hi all,
I have a NPC sprite with animations (walking, idle) and 3 states: idle, left, right. The sprite has a timer behaviour. My goal is to make the NPC walk around (either left or right) for 2 seconds, then choose to either walk again (left or right) or idle for 2 seconds.
My idea was to start a timer every time the state variable changes to either 0, 1, or 2, (state 0 = idle animation, state 1 = platform left, state 2 = platform right). I've included an image with the code block:
When the state variable changes, however, the timer is initiated (either walking or waiting) but the countdown doesn't start. Both timers stay at 0/2 seconds:
Any ideas, anyone?