Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

sprite sheet animation

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was trying to make animation using sprite but i ran in to a problem. i want to make animation if user hit right key and different animation if user hit left key. and different animation if user hit up key etc....

the problem is that righ tnow this code below only makes one animation. in player class i want change code lil bit so i can create different animation.

this way this code works is that in player class i have arraylist which stores different images. than i can call animation class to create animation.







animatin.java
 
Marshal
Posts: 69773
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to another forum as too difficult for “beginning”. Maybe our GUIs forum?
 
sudde gameeef
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i move to another form? do i just post it again?
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell has already moved the thread into the GUIs forum.
 
    Bookmark Topic Watch Topic
  • New Topic