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