I am making a game in Libgdx and I have a little problem. I have a number of actors that show up on the screen dynamically. If there is an Image actor that shows up after the first, could I send it to the back so that it doesn't cover the first one that is already on the screen?
Usually Libgdx adds each new actor higher in hierarchy like a stack and brings every one to the front.
Try the following methods in the Actor class: toFront(), toBack() & setZIndex()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With