I am trying to make a menu panel and when it is clicked to have it clear the world than produce the next panel that i want. Does anyone have the code to clear the world or is there a different approach than what i am thinking?
'getObjects(null)' will get a list of all objects currently in a world; so, 'removeObjects(getObjects(null))' will cause all objects in the world to be removed. Then, you just need to maybe change the background image and add your menu objects.