libGDX - each frame with individual frame duration

Hi guys,

I’m trying to switch from slick2D to libGDX and there comes the first problem :wink:

In slick2d I can set an individual duration time in millis for each frame. This is cool, because I have an idle state sprite sheet of my character which is blinking its eyes. So the first frame with open eyes should be visible for about 4000 millis and the others for about 100 millis. How would you manage this.

I am using this tutorial for the animation:

http://code.google.com/p/libgdx/wiki/SpriteAnimation

Best would just be to create your own Animation class for something like that.
http://pastebin.java-gaming.org/7f8d73c2a6c

Thanks for he code. :point: