We use Greenfoot to learn Java in school.(Germany)
What i want to do:
There is a ship and when i press the spacebar the ship shots an laser forward.
But i can't create the Laser shot there, where my Ship was as i pressed the spacebar.
My code looks like this, and it is in the Lasershot.class
if(Greenfoot.isKeyDown("space")){
Schuss Schuss1 = new Schuss();
addObject(Schuss1,getX(),getY()+50);
}

