Okay, so, here is my code:
What I want is when every time I press W, I want to create an object (a missile) from the location of my current movable actor (Savior). I have this much so far but I can't seem to understand what I am doing incorrect. This code is in my actor class "Savior", if that helps at all.
if(Greenfoot.isKeyDown("w")) {
addObject(new Missile(), Savior.getX(), Savior.getY());
}
