Hello, I want to make death animation for my character.
Here is a basic example -
stateTime += Gdx.graphics.getDeltaTime();
currentFrame = deathAnimation.getKeyFrame(stateTime, true);
spriteBatch.begin();
spriteBatch.draw(currentFrame, 50, 50);
spriteBatch.end();
So the problem is that the character is looping the animation over and over again.
and I want it to do the animation and stay on the last frame(which is when the character lays on the ground) instead of looping it.
Any ideas?