Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Gamemaker Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)
close
close
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)

Overview of this book

This book is for users experienced with game development who now want to learn how to develop games in GameMaker: Studio in a fast-paced way.
Table of Contents (11 chapters)
close
close

Depth

While working with objects in GameMaker, you may run into a few issues when it comes to one object going behind or in front of another. This is an issue caused by something called depth.

Depth in GameMaker is used to order objects from lowest to highest in a room. It can be seen much the same as a layer in an image editor such as Photoshop. By default, an object's depth is set to 0. If more than one object has the same depth value, then they will be ordered first to last, based on the order you create them in the room.

The higher an object's depth is, the lower it is drawn in a game room. So if an object with a depth value of one overlaps an object with a depth value of zero, then the object with the depth value of zero will appear on top of the object with a depth value of one.

Depth

Depth ordering

An object with a depth that is higher than another, will execute its code first. Oftentimes, this greatly affects the creation of objects in a room. For example, a button may need to appear...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Gamemaker Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon