I am using libgdx on a little game and I have a little animation on my menu screen. I have used Animation() class and gave it a list of 20 sprites. The animation duration is 2 seconds. What I want is to make this animation repeat each 4 seconds. So I need a way to introduce delay between repetitions.
Share
I’m not sure if the Animation class has native support for delays like this, but you can always just keep track of elapsed time yourself and restart the animation after the elapsed time passes 4 seconds. For details see: https://gamedev.stackexchange.com/questions/25001/waiting-specific-time-to-increase-sound-libgdx