I am new to greenfoot and am making my first game which is a fighting game with space invaders elements... how to I get my actors to shoot?
  
  
            if (!spaceDown && Greenfoot.isKeyDown("space"))
{
    Greenfoot.playSound("Phaser.wav");
    createLaser();
    spaceDown = true;
}
if (spaceDown && !Greenfoot.isKeyDown("space")) spaceDown = false;String key = Greenfoot.getKey();
if(key == null) { key = "null"; }
if(key.equals("spacebar")) { createLaser(); }