-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No clear way to sprite z sort #211
Comments
@spinningD20 I guess it's a very specific use-case. Is it something like u have a player and u want to make it disappear (or appear) as the player moves along the y-direction ? |
http://www.cocos2d-x.org/wiki/TileMap#Using-multiple-TMX-Layers-and-z-order See the example image underneath that section, that's what I'm after |
@spinningD20 I had talked to @Kovak about this when I first started implementing layers in the maps module. Currently, the way to add z-index is to create multiple systems and place them in correct order, and let kivy handle the overlapping. This is what is being done in the init_map_systems right now. I think having a z-index param in the renderer would need rethinking of the batching code and maybe something more. EDIT: One more problem would be that you wouldn't be able to combine sprites and coloured polygons to get something like sprite-poly-sprite, because they require different systems. |
+1 For having the ability to manage order in rendering sprites. |
Specific to my situation (using a Tiled map), I'd love to have sprites in a layer that can be z ordered based on their Y positioning. If this can't be done without heavy workaround, is it in the plans for the future?
The text was updated successfully, but these errors were encountered: