How do i make a falling object and make it so that it spawns in different spots in the x axis
The following line in the act method of the class (Actor subclass) will make the instances of that class "fall":
setLocation(getX(), getY()+1);
The literal '1' can be adjusted up to increase the speed.
The MyWorld class act method should be used to spawn the falling objects, using the following for the x-coordinate of placement: