• Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple animation not working  RSS feed

Vincent Blake
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm fairly new to Java and I've encountered my first problem I can't seem to fix. I've been learning Java from a series of online tutorials and a book, I completed the basic tutorials with a decent to good grasp of what was covered in my opinion. I moved on to some game development tutorials and now I am on animation.

Below is the code I have, everything seems to work properly except the animation I want. I have a couple robot png files that were imported. Using the array in the Animation class, I hoped to flip through the sceneIndex to make it appear that the robots eye color was changing back and fourth. As mentioned, its not working, it only stays at the first sceneIndex and does not switch. Any help would be much appreciated.

I apologize if my code is not easy to read. I also have a class called Screen but I wouldn't think that's needed.

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!