I'm having a small issue with libgdx animation.
I'm using getKeyFrame() to get the current frame of the animation and I'm updating the state time by adding on deltaTime in my update function for the object. The animation is not looping.
My problem is that the animation seems to play at different speeds depending on the frame rate. On my phone this animation plays particularly slow. My thinking was that the stateTime would cause it to skip a few frames when it's going slow, but this doesn't seem to be happening.
Here is the code;
sprite = Animation.getKeyFrame(stateTime, false); sprite.setRotation(angle); sprite.setPosition(position.x, position.y); sprite.draw(batch);
Has anyone else experience this issue.