I have this code, and it works for the right animation, but when he walks up he lops his up animation per frame making it look buggy
- Code: Select all
if(key[KEY_RIGHT]==1 && key[KEY_UP]==1) {
if(animindex!=getAnimIndex("PlayerUp")) {
y-=3;
x-=3;
ChangeAnimation("Event Actor", "PlayerUp", NO_CHANGE);
}
else if(animindex!=getAnimIndex("PlayerRight")) {
x+=3;
y+=3;
ChangeAnimation("Event Actor", "PlayerRight", NO_CHANGE);
}
}
Any fixes please?