Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playing animated gif with libgdx

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.

like image 299
coolscitist Avatar asked Aug 07 '13 05:08

coolscitist


People also ask

Can GIF be hyperlinked?

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.

Can GIFs be used in Pygame?

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.

Why is GIF better than Apng?

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.


1 Answers

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.

like image 199
coolscitist Avatar answered Sep 20 '22 14:09

coolscitist