- Thread starter zendraw
- Start date

Through code: layer_depth(layer_id, depth)theres no other way?

layer_id: The unique ID value of the layer to set the depth of (or the layer name as a string)

Is it exactly +- 16000, or 16384 since internally GM is probably using a signed 16-bit variable for those limits.Game Maker 2's Z-buffer spazzes out at around +-16K, either force the legacy system or put limits in your min/max depth

So if his level is 16000 high, there might be room enough for 384 depths behind it

The manual says don't exceed -16000 or +16000, so I would guess it's exactly.Is it exactly +- 16000, or 16384 since internally GM is probably using a signed 16-bit variable for those limits.

So if his level is 16000 high, there might be room enough for 384 depths behind it

Is it exactly +- 16000, or 16384 since internally GM is probably using a signed 16-bit variable for those limits.

So if his level is 16000 high, there might be room enough for 384 depths behind it

IMPORTANT!There is a minimum and maximum layer depth of -16000 to 16000. Anything placed on a layer outside that rangewill not be drawnalthough all events will still run as normal.

PS: Interesting thread on this here on the forum: https://forum.yoyogames.com/index.php?threads/depth-ordering-in-gms2-priority-list-nested-list-grid-binary-list.13425/