Skip to content

Commit 143c3e6

Browse files
committed
resets posTween when walking
1 parent 389f2c6 commit 143c3e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blade-engine/src/com/bladecoder/engine/model/SpriteActor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ public void startAnimation(String id, int repeatType, int count,
170170
}
171171
}
172172

173+
// resets posTween when walking
174+
if(posTween != null && posTween instanceof WalkTween)
175+
posTween = null;
176+
173177
renderer.startAnimation(id, repeatType, count, cb);
174178

175179
fa = renderer.getCurrentAnimation();

0 commit comments

Comments
 (0)