I've been through this forum, and I've yet to find a piece of code to simply do what I'm wanting.
First off, I've added some items to the world with :
public void LoadStartMenu(){
//Loads the Startup Menu
addObject(new Startup(), 285, 285);
//Loads the Color choice buttons (White or Black)
addObject(new swp(), 412,255);
addObject(new sbp(), 412,321);
}
And this works fine, but the issue I'm now having is after the user selects one of the objects on the screen, it doesn't remove all the objects I'm wanting. (only the object the user clicked on)
I've tried using: "getWorld().removeObjects(Startup);" where 'startup' is the name of the object/class I'm trying to remove from the world.
I've tried many variations of this as well, and all bring about the wrong result. And I keep getting a compile error.
Also I'm trying to do this from within a subclass actor when it's clicked on. (e.g a button is created on the screen, you click on that button and only that button is removed, not the other two buttons that were loaded)
So I'm open to any examples or ideas as to what I'm doing wrong or simply not understanding about this "getWorld().removeObjects(Startup);"