Page 1 of 1

[java] Using animated gifs

Posted: Sun 05 Feb, 2006 7:33 pm
by anykey
From everything I've seen, java can't display animated gifs.
I'm writing a game in my computer science class, and would like to have animated sprites. I'm using the ImageIcon class to display images.
Does anybody know how to do this?

Posted: Sun 05 Feb, 2006 10:37 pm
by Patori
hmmm... back when I was toying around with images, I just made a series of images, and stored them in an array of Image class.

Then I cycled through them... fun, fun, fun.

Posted: Mon 06 Feb, 2006 1:02 am
by threefingeredguy
That is how you have to do it.

Posted: Mon 06 Feb, 2006 1:38 am
by anykey
damn. I guess I'll do that.
Yet another array to loop through everytime I redraw! :x