Right now the Andou's Move animation is dictated by this piece of code from the GameObjectFactory class (among others):
SpriteAnimation angle = new SpriteAnimation(PlayerAnimations.MOVE.ordinal(), 1);
angle.addFrame(new AnimationFrame(
textureLibrary.allocateTexture(R.drawable.andou_diag01),
Utils.framesToTime(24, 3), pressAndCollectVolume, basicVulnerabilityVolume));
I'd like to add a second Move frame by adding something like this:
angle.addFrame(new AnimationFrame(
textureLibrary.allocateTexture(R.drawable.andou_diag02),
Utils.framesToTime(24, 3), pressAndCollectVolume, basicVulnerabilityVolume));
idle.setLoop(true);
(and then obviously updating ".ordinal(), 1);" to ".ordinal(), 2);")
But the code above simply skips the first frame, goes directly to the second frame, and STAYS on the second frame for as long as I'm continuing to move.
On the other hand, when i implemented something similar for the Idle animation frames (for example, now Andou's Idle animation could include two images to give the effect like he's blinking etc), it worked fine.
Can someone tell me how I can add a second frame to the Move animation? I suspect there's something dictating how long this set of frames lasts, and I can't seem to find out what.
Thanks!
Joe