ok so during the break I had to code some stuff for my project and I need help. This is the main class
This is the enemy class
and this is the entity class
So anyways I am stumped it is probably something easy but I can't see it.
I see, your Enemy class constructor has 3 parameters. But when you use it in JForumAnimationJunk class (line 62), you pass in only 1 parm (the image), when it expects a int, int, String.
is called by the timer and in the Sprite's move() method we do the boundary checking after adding the deltas from key events..
@Alaric
there were key events (q &e) defined for the saucer, that's what I implemented....
just take it as an example and use it for your laser cannon.
The saucer isn't visible in the beginning of the game and scrolls from left (off) to right off.
So the minX for it would need to be adjusted for that.
Why not have a counter incremented in in actionPerformed() that triggers the appearance of the saucer?
I think you got the idea...