Is there a way to set an offset from an actor where another actor will spawn when using the addObject command?
I'm making an astronaut game and the astronaut has a gun, but the bullets shoot out of his head, instead of out of his gun.
Actor bullet = new Bullet(); getWorld().addObject(bullet, getX(), getY()); bullet.setRotation(getRotation()); turn(90); move(10); turn(-90); move(5);