"Dear friends! If you enjoyed this video, please give it a like and subscribe to the channel. We strive to share with you the lost knowledge of the great prophet and teacher of GameDev, Sempiternal Rain. These lessons will teach you the GameMaker Studio game engine. Learn programming in Game Maker Language (GML). And in the future, you'll be able to easily create almost any 2D game for video consoles, computers, and phones."
Description and tips below. Enjoy!
VK Community
sempiternalrainnotes (Sempiternal Rain: Notes)
Games created by the great visionary of the gaming industry, Sempiternal Rain:
1. "Socialism Simulator"
2. "ReLinked"
You can purchase them on Steam)
-------------------------------------------------------------------
Lesson Title:
GameMaker Studio - Lesson #15: Depth
Lesson Description:
In this video, you will learn what depth is and how to work with it.
------------------------------------------------------------------
*******
Depth is an indicator of the order in which objects will be displayed. If object 1's depth is greater than object 2's depth, then object 1 will be displayed below object 2.
*******
*******
Sprite
*Collision Mask
** Mode Manual
Setting the mask at the player's feet
Ob_player
*Step
depth=-y;
Ob_tree
*Create
depth=-y;
Ob_wall
*Create
depth=-y;
*******
Notes:
1. Set the collision mask at the bottom of the object
2. Set the origin at the bottom of the mask
3. Set the depth to depth=-y;
4. Consider which depth to use for which objects. Example: 0 to -2000 for objects, -4000 for bosses, -5000 for effects, -6000 for the interface
//////////////////////////////////////////////////////////////////////////////////
Tags:
#gamemaker, #depth #depth, #training, #lessons