How to play animated gif file with libgdx?
I know it uses spriteanimation, but I need to play GIF files because they save a lot of space.
It is okay if I have to use/build a decoder like this. But I need it for libgdx.
HTML link use the <a> tag with the intended URL in the href property. Wrap your GIF in an <a> tag to make it clickable.
This library adds GIF animation playback to pygame. This library provides functionality to load and play GIF animations in pygame. Also provided are ways to manipulate the animation playback, by setting regions to play, reversing etc.
While APNG files are great for high quality looped animations, they don't have the support that GIF files have. A lot of web browsers and programs don't come with support for APNG even though the file type has been around since 2004.
Update: There is a solution to this problem: http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=10351&p=46673#p46673
Looks like there is no direct way to play animated gifs in libgdx.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With