Originally Posted by
JohnZ
Thanks for your help. Gonna give it a try right away. Respawning it I use repaint();?
I'm not sure what you mean by that. Calling repaint() simply tells the component to paint itself using paintComponent(). So you override paintComponent to display a frame of your game.
Then every time the Swing Timer fires, you do something like this:
1- Update every game Object. The OO way to do this is to iterate over each Object and call an update function of each.
2- call repaint
Then in paintComponent(), you simply iterate over each Object and paint it, perhaps by calling each Object's paint function.