Hi all,

I was wondering if we could do something like a FrameSelector. My game currently needs going backward animation, and instead of doing an entire new animation, I could just do this:

public void update(float time) {
  if (goingLeft) {
    if (animationCounter < 12) {
      animationCounter = 15;

Something like this would be nice.

Ive been looking at the Md2KeyFrameSelector for a few days now, and honestly speaking, im lost.

Any help on this issue would be greatly appreciated.

DP :)


I was using md2’s and I could only make the animation move forwards, i wanted it to go backwards. But since Im using XML now, i dont need it, because I can set the boolean variable “movingForwards” to false, and the animation would play backwards. :slight_smile:

I never anticipated someone using “movingForward” boolean for their own use. I just used it to cycle animations. So when the code was written I wasn’t thinking “lets make sure if someone changes movingForward to false they can loop backwards correctly”. Basicly, watch out :slight_smile: The fact that it does seem to work though makes me feel all gooey.