I don’t understand how Gideros works with z-axis (or drawing order). How can I define drawing order of sprites when they cover each other?
Think of this: in the stage there are one background image and several foreground images which may partially cover each other. Now I want to add another image to the stage between background and at least one foreground image. In 3d it could be done by using z – axis. How to do it in Gideros?
Comments
You can control z-index of specific object by adding it using addChildAt(index) method
Here's an example of functions you can use to control object's z-index:
http://www.giderosmobile.com/DevCenter/index.php/Forum_FAQ#How_can_I_control_Z-index_of_object.3F
Likes: GGGRRR123
Also, why the API does not have toBack and toFront by default?
2) most probably Sprite:addChildAt(sprite, index) seemed more appropriate when dealing with hierarchy trees.
Likes: seppsepp, Yan