I don't know how to make an object fire another one
public class Player extends Actor{
public void shoot(){
Bullet b = new Bullet();//create a new bullet instance
getWorld().addObject(b, getX(), getY());//add that bullet to the players location
b.setRotation(getRotation);//set the bullets rotation to the direction the player is facing
}
}
public class Bullet extends SmoothMover{
private final static int SPEED = 10;//the movementspeed of all bullets
public void act(){
move(SPEED);//moves every frame
if(isAtEdge())getWorld().removeObject(this);//removes itself if it is at the edge of the world
}
}