An artist wants to send me animated .gif’s to use within a Java game. For the sprites he sent me, I told him to just use a regular .gif with the frames in a horizontal strip. But he wants to send me some other things now, and I figure it’s a good time to learn how to use animated .gif’s.
I searched the API and the Internet, and I found that Java has some sort of way to load animated gif’s. I found a note that they were displayed normally in old versions of Java (1.2, I believe) but required additional work in later versions of Java.
There’s a note about animated gif’s in the API for ImageIcon.setImageObserver, but it doesn’t make much sense. I thought that ImageObservers were for seeing whether an image was loaded, not for doing animations.
All I really need to do is get an array of images from an animated gif file, but I don’t know how to work with them.
Can anyone direct me to a tutorial or any sort of information about animated gif’s in Java?