My game has an object container made of 3 sprites. Basically, it's a big sprite with two sprites pined on it acting as buttons.
At certain times of the game, when clicked, I need the object to :
1) move in front of other objects on the scene
2) move to another layer.
So I send the commands to the main element of the container and find out that
1) only the main element is send in front
2) only the main element is sent to the other layer
I thought that when an order was sent to the main element of the container, the whole container would act accordingly to and behave as a single object. ie, when main element is sent to front, all the object elements would be sent to front and be rearranged. The same when the main element is sent to another layer. All the elements would follow and be put at the right place and zindex.
Is there a simple way to fix this ?