v0.6.2: fixed more cases where death animations where being interrupted

This commit is contained in:
Evan Debenham 2017-09-12 18:31:08 -04:00
parent f67a2e561f
commit becd3167da

View File

@ -124,6 +124,14 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
listener = this; listener = this;
} }
@Override
public void play(Animation anim) {
//Shouldn't interrupt the dieing animation
if (curAnim != die) {
super.play(anim);
}
}
public void link(Char ch ) { public void link(Char ch ) {
this.ch = ch; this.ch = ch;
ch.sprite = this; ch.sprite = this;
@ -171,10 +179,8 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
} }
public void idle() { public void idle() {
if (curAnim != die) {
play(idle); play(idle);
} }
}
public void move( int from, int to ) { public void move( int from, int to ) {
turnTo( from , to ); turnTo( from , to );