• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sprite Animation

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread and the fact that I have started looking into some rudamentary 2D Graphics type games make me start wondering how to handle sprite animation in Java. I'm not talking about simply moving an image around on the screen but actually loading several images that when looped over make an animation, say, of a guy walking, or whatever. Does anyone have any links to the best methods for handling this in Java?

Thanks.
 
saager mhatre
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Gregg,
It's just an idea, but wouldn't this kind of sprite animation be better off included in the Image Producer/Consumer API ??
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got started with the old Sun tutorial which had a page on animation. It has been retired but (they say it) is available for download on this page: Download the Java Tutorial. I think you want the Online Tutorial link. The rest I learned on my own.

For background information on painting you might check the currrent tutorial page: Implementing a Custom Component.

Here's an example of animation in Swing:

[ June 27, 2004: Message edited by: Craig Wood ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic