View Single Post
  #1 (permalink)  
Old 10-14-2008, 09:36 PM
Unome Unome is offline
Member
 
Join Date: Oct 2008
Posts: 35
Unome is on a distinguished road
Animation Applet
Hi I'm Unome... I've been taking java for a year in school and I'm starting to do some independent study.

I ran across Timer's in my Java textbook and figured out how to use the swing timer and with that was able to with ActionListener make some simple animations. I came across a problem. I want to be able to take persay... a bullet object and every time I call the bullet object it will create a new bullet that animates. (For instance when I press space bar a bullet is created and fly's x amount to the right) I am able to make the bullet... I'm able to make the bullet fly to the right animated... How do I call a bullet object in another class? I know the question might be stupid or simple to you guys, but every time I call the bullet object in a testclass the applet won't open anymore? Am I using something wrong? Is there a better way to do it? I am open to any opinions and answers... I'm an eager learner and have open ears.

Help me please

Thankyou
Reply With Quote
Sponsored Links