Draw things on top each other - Depth sorting [Game Maker | Basics] @1upIndie
Draw things on top each other - Depth sorting [Game Maker | Basics]  @1upIndie
Uploaded April 2022 | Updated September 2026, 15 hours ago
This basics video tutorial shows you how to depth sort (depth system) in GameMaker.

Things feel natural if they are being draw correctly. Image a stack of cards and it is obvious that the top card would be visible to you. So what we do is to check where the instances are and sort them to their own depth (or their own layer so to say) according to their y position in the room. We cluster all the instances into a parent object and swap their current depth to their -y value. We do that with the "with" statement that allows use to go through all the instances and swap their own depth. That's it!

Advanced version of controlling depth:
youtube.com/watch?v=8QCgN2RDA9I


(Free) Art shown in the project and in video thumbnail:
Ansimuz CC0
opengameart.org/content/tiny-rpg-forest


πŸ‘‘ Support me and get fresh game art and game maker projects every month:
patreon.com/1upindie

Follow me on:
πŸ“Έ Instangram: instagram.com/1upindie
🐦 Twitter: twitter.com/1upIndie
πŸ’¬ Discord: discord.gg/gvr98nb
πŸ“œ Udemy: udemy.com/course/become-a-video-game-developer-with-gms-23 (See youtube about page for discount)


CHAPTERS
-------------------------------------------------------------------------------------------------------
0:00 What we will do
0:59 Subscribe
1:11 Theory of depth and how things are being draw
2:03 Depth sorting
2:37 Grouping instances into a parent object to sort
3:44 Pitfalls of this depth sorting
Draw things on top each other - Depth sorting [Game Maker | Basics]Gradient water/sea background - The easy way [GameMaker | Vfx]Gravity Storm under the hood [game design, make in GameMaker]Weapon damage [#7 Vampire Survivors Remake in GameMaker ]Gamemaker Roadmap 2024Structs - light objects [Game Maker | Basics]External Hit Animation  - Juice up any game [GAME DESIGN CODE]Metroidvania Map the easy way - Concept  [GameMaker]Contra style turret [Game Maker Studio 2 | Enemy Ai]πŸ”΄Loot Vfx - The easy way [GameMaker | Vfx]Splash Screen Parallax [GameMaker | Vfx]How to make a platformer in Gamemaker (the easy way) #2
1up Indie |

Draw things on top each other - Depth sorting [Game Maker | Basics]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER