I
izark
Guest
Hi there.
I really don´t know what is happening.
An instance of 0 depth is drawn below instances of 200 depth. This only happens when these 200-depth instances have been created through instance_copy(). To be sure of the depths of these instances during runtime, another object has this code in the draw_end event : with all draw_text(x , y , string(depth)), and I can see the 0 depth instance passing below the 200 depth instances.
Those instances don't have a draw event, nor draw_end event, and there is not an external object drawing them. I have checked everything and I don´t find an explanation. All instances are placed on predefined layers.
Edit: I am not using instance_copy, I copy manually variables instead, and now it is working.
I really don´t know what is happening.
An instance of 0 depth is drawn below instances of 200 depth. This only happens when these 200-depth instances have been created through instance_copy(). To be sure of the depths of these instances during runtime, another object has this code in the draw_end event : with all draw_text(x , y , string(depth)), and I can see the 0 depth instance passing below the 200 depth instances.
Those instances don't have a draw event, nor draw_end event, and there is not an external object drawing them. I have checked everything and I don´t find an explanation. All instances are placed on predefined layers.
Edit: I am not using instance_copy, I copy manually variables instead, and now it is working.
Last edited by a moderator: