D
DarklinkFighter
Guest
Hi,
I encountered an issue with my game after I tried to change the way my pausing works...
Previously I created a screenshot sprite and deactivated all Instances but reactivated some controller objects...
Now I tried to implement an Inventory and for that I refactored it to instance_deactivate_layer but it seems not to work...
I found out in the debuger that many but not all of my instances have a layer of -1 (because I use depth = -y for some objects)...
After that I red in the "depth" manual:
If so... How could I fix this?
I encountered an issue with my game after I tried to change the way my pausing works...
Previously I created a screenshot sprite and deactivated all Instances but reactivated some controller objects...
Now I tried to implement an Inventory and for that I refactored it to instance_deactivate_layer but it seems not to work...
I found out in the debuger that many but not all of my instances have a layer of -1 (because I use depth = -y for some objects)...
After that I red in the "depth" manual:
Does this mean the instance_deactivate_layer does not work anymore for these objects?IMPORTANT! When you modify the depth variable and GameMaker STudio 2 manages the layers, the built in layer variable will return -1 and not the layer ID, since managed layers cannot be manipulated through code.
If so... How could I fix this?