• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sprite Animation

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic