Side view fighting game (basically), with Player and Enemy.
For the enemy's in-game behavior, I want:
Between 3-9 seconds while the enemy is playing "Idle" animation, the enemy attacks.
My problem: The enemy attacks correctly, but ALWAYS on 3 second intervals--NOT randomly between 3 and 9 seconds. Where is my issue?
EVENT 1 CONDITIONS
Every random(3,9) sec.
AttackType(Global Variable)=0
Enemy anim = "Idle"
ACTIONS
Set AttackType = 1
EVENT 2 CONDITIONS
AttackType = 1
ACTIONS
Set Animation to "Attack1"
Set AttackType = 0