• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows Depth is not working correctly

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.
 
Last edited by a moderator:

Roderick

Member
All instances are placed on predefined layers.
Are the instances on the SAME layer?

I've never used 2.0, but my understanding was that depth is like pages in a book, and layers is like a stack of books. So yes, page 1 of volume 1 is above page 200 of volume 1, but page 1 of volume 2 is BELOW page 200 of volume 1.
 

acidemic

Member
This problem still persists. After cloning an instance with 'instance_copy' the 'depth' is not working at all.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Please file a bug and include a link to a small sample project if you can. (you can file a bug from the IDE by going to Help > Report a bug)
 
Top