v0.3.1: char sprites now turn before moving.

This commit is contained in:
Evan Debenham 2015-07-09 00:00:52 -04:00 committed by Evan Debenham
parent 063d488dce
commit 90df58c5cc

View File

@ -143,6 +143,8 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
}
public void move( int from, int to ) {
turnTo( from , to );
play( run );
motion = new PosTweener( this, worldToCamera( to ), MOVE_INTERVAL );
@ -151,8 +153,6 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
isMoving = true;
turnTo( from , to );
if (visible && Level.water[from] && !ch.flying) {
GameScene.ripple( from );
}