[java] Using animated gifs

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

[java] Using animated gifs

Post 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?
I think, therefore iMac
Image
Patori
Maxcoderz Staff
Posts: 1479
Joined: Sat 18 Dec, 2004 3:51 am
Location: Toledo, Ohio, USA

Post 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.
Currently coming up with a new signature idea... since my forum avatar changer was killed by an upgrade...
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

That is how you have to do it.
Image
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

damn. I guess I'll do that.
Yet another array to loop through everytime I redraw! :x
I think, therefore iMac
Image
Post Reply