So, I'm making my world, where the player controls the object "Cube". In the code I am making, the world wipes itself clean, then it SHOULD replace the object known as Cube. This is the code.
help would be greatly appreciated
// Here's where we clear the board
getWorld().removeObjects(getWorld().getObjects(All.class));
//Here's where we're supposed to imput Cube
nextLevel();
public void nextLevel() {
World world = getWorld(); // gets the current world
Cube newcube = new Cube(counter);
world.addObject(newcube, 459, 305);
}
