• 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.

Question - GML Visual Sprites/objects mix layers after change room

R

Redbow

Guest
Hi guys, could you help me with this problem please?
First picture is how it should looks. Its cube sprite places one next to other. Room is Persistant. After I jump to another room, and than I jump back ... all my cubes are bad layered. (But all is in the same Main Layer.
(Probably I will need to give cubes in the back to lower main layer, but I have huntreds of these cubes so is some easier solution for this problem?

(I am usind only Drag and Drop for this game.


https://imgur.com/bul7Afz

https://imgur.com/ZIrfoJm



 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Individual items on the same layer do not have a guaranteed order for rendering. If you want to ensure that something is drawn under or over something else then you should use explicit layers or depths.
 
Top