Add 2 new conditions in the "ZOrder" Category of the common conditions, similar to the existing "Is on layer" condition shared by World Object Plugins.
- Object is on Sublayer of {choose a Layer}
- Objec is on parent Layer of {choose a Layer}
It would be very handy if those 2 new expressions had those 3 parameters :
1. Layer string/number to check if the Object is currently on one of its a Sub or Parent Layer.
2. A boolean (true by default) to choose if the condition is true even if the Object is in fact directly on the selected Layer instead of one of its sublayer.
Which means [SpriteX is on sublayer of "Objects"] would be true both if the Object is directly on the Layer "Objects" or if its in the sublayer "Objects_Sublayer", if this boolean is set to true.
3. "Which" dropdown List (Own/All, set to "All" by default),
- if "Own" is selected it returns true only if the Object is on directly a Sublayer or a Parent Layer of the selected Layer
Which means it would return false if the SpriteX is in the sublayer of the sublayer (grandchild Layer) of "Objects"
-If "All" is selected, it returns true even if the SpriteX is on the sublayer of the sublayer of the sublayer of the "Objects" layer.