Get Lost @getlost.gg · Feb 2

[1/5] Have you ever seen the Z-buffer in a 2d game? 👀🤯 A Z-index tells the engine if an object in front of or behind the player. If the player's Z is greater than the object's Z, the player is in front. If the player's Z is less than the object's Z, the player is behind.

0 likes 1 replies

?

Replies

Get Lost · Feb 2

[2/5] Usually, the Z-index is synced with the object's vertical position. So if the player is further down in the map, it increases their Z, which puts them in front of objects that are higher up in the map.