As of now I've been using Gdx.graphics.getDeltaTime() to achieve this but I think this shouldn't be the correct way.
Let's say I have 3 images/sprites and I want the first one to stay for 1 second, the second sprite for 0.5 second and the third sprite for 3.5 seconds, so it combines a 5 second animation.
As of now I've been using "ifs", as in
if time <= 1 second, draw first image
if time > 1 && time <= 1.5, draw second image
if time > 1.5 && time < 5, draw third image
I've followed 2D Animation tutorial, but to run multiple sprites in order, they all have the same time between them and I want it to have different frametime.
Any idea that might I would be apreciated.
The idea is to run timed based animations for a certain amount of time.