- Code: Select all
if(distance(x, y, wall.x, wall.y) >= -1){
if(dir == 1){
ChangeAnimation("Event Actor", "PlayerIdleRight", NO_CHANGE);
dir=3;}
if(dir == 2){
ChangeAnimation("Event Actor", "PlayerIdleLeft", NO_CHANGE);
dir=3;}
problem is it only stops at the original clone