I was adding animation to the game, i added my images in a array[] of TextureRegion and added the key frames and duration to Animation().
I have set the play-mode to NORMAL.
But when i am doing this:
if(Gdx.input.isTouched())
{
batch.begin();
readyText_elapsedTime += Gdx.graphics.getDeltaTime();
batch.draw(anim.getKeyFrame(readyText_elapsedTime, false), 5, 20);
batch.end();
}
The Result is that i am getting the animation, but if the click is too fast, some of the frames are preloaded and the animation gets completed earlier. What might be the solution to this?