v0.6.2: fixed more cases where death animations where being interrupted
This commit is contained in:
parent
f67a2e561f
commit
becd3167da
|
@ -124,7 +124,15 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
|||
listener = this;
|
||||
}
|
||||
|
||||
public void link( Char ch ) {
|
||||
@Override
|
||||
public void play(Animation anim) {
|
||||
//Shouldn't interrupt the dieing animation
|
||||
if (curAnim != die) {
|
||||
super.play(anim);
|
||||
}
|
||||
}
|
||||
|
||||
public void link(Char ch ) {
|
||||
this.ch = ch;
|
||||
ch.sprite = this;
|
||||
|
||||
|
@ -171,9 +179,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
|||
}
|
||||
|
||||
public void idle() {
|
||||
if (curAnim != die) {
|
||||
play(idle);
|
||||
}
|
||||
play(idle);
|
||||
}
|
||||
|
||||
public void move( int from, int to ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user