I know that any new actor is automatically added above all existing actors, but I'm putting roads in my game and I want them to be added later in the game and for them to be added on the bottom level of the actors, I've look through the api for a long time and give up
one solution I found that's not effective to move existing actors to the top is to: add a new actor at the same X and Y place then delete the old actor moving it to the top, but it'd be hard to do that with every actor on the world just to place one actor below the rest
my solution is as follows: (it's not exactly what I use, I'd replace Actor with the class name and I put this in the actor class I want to move to the top)
I'm asking if there is an easier way move actors up and down levels easier like the "move to front", "move to back", ect. in microsoft office
1 2 | getWorld().addObject( new Actor(),getX(),getY()); getWorld().removeObject( this ); |