How do I make my actor object fire a laser beam when spacebar is pressed that continuously moves upwards like in the Atari Centipede game?
private void fire() { Actor laser = new Laser(); // create laser laser.setRotation(getRotation()); // set rotation of laser getWorld().addObject(laser, getX(), getY()); // place laser into world }