Hi,
I have two sprite manager added to a layer.
The sprites from second manager added are shown below the sprites from sprite manager added before.
I have even tried to increase the z-index of sprites from second sprite manager to 100.
But not working.
It seems that atlas sprites obeys z-index within their respective sprite manager. And do not relate with z-index of second atlas sprite mangaer.
This is a big issues, if we want to use atlas sprite manager and we have lots of images not fitting in 1024 x 1024 frame.
AtlasSprite of Multiple sprite manager ... z-index of layer not working on them
(2 posts) (2 voices)-
Posted 2 years ago #
-
You can not intermix the z ordering of two or more AtlasSpriteManagers. The way AtlasSprites work is that all the sprites that belong to a manager are drawn in one hit. It is not possible to use the z axis either as the GPU does not combine transparent images correctly - you need to draw transparent images from back to front (painters algorithm).
I know it sucks but these are the limitations we have to work with.
Posted 2 years ago #
Reply
You must log in to post.