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

Legacy GM Depth [solved]

N

NoFontNL

Guest
How can I set the depth of one instance?
Because my semi-solid-platform (one way platform) appears in front of the other semi solid platforms.
See PNG:

But I want it as in the room editor:

That the 2 bottom platforms are in front of the top one.
I knew about the object_set_depth function, but that changes the depth of the object itself.
 

FrostyCat

Redemption Seeker
The Manual entry for object_set_depth() said:
Please note that this is not an instance function! You can set the depth of individual instances using the depth variable and so have ten instances all with different depths even though the object in question has the depth set to another value in the IDE, and even if you change the depth of the object to something else using this function, all instances that currently in the room will remain as they were, and only instances created after calling the function will start with the new depth.
 
Top