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


1 2 | Actor bullet = new Bullet(); getWorld().addObject(bullet, getX(), getY()); |
1 | bullet.setRotation(getRotation()); |