Im making a fighter type game but I cant figure out how to change the animation when the enemy is moving, I tried using this code
if (xprevious<x)ChangeAnimation("Event Actor", "right", FORWARD);
if (xprevious>x)ChangeAnimation("Event Actor", "left", FORWARD);
But the animation started again before finishing, I also would like to know if theres any way to use "and","or" operators.