I tried spawning a bullet in a spaceship everytime you press space but it did not work i dont know how to spawn a bullet on a moving spaceship so maybe you guys can help me out
Actor bullet = new Bullet(); getWorld().addObject(bullet, getX(), getY());
bullet.setRotation(getRotation());