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
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

Parents


In many other programming languages, it is possible to have objects created with the same attributes as another. In GameMaker, this is called parenting. A parent in GameMaker is any object that has had another object parented to it. Once an object has been parented, it can use the same code as its parent without it needing to be re-written. An object that has a parent is often referred to as a child object. Any events within the parent object are the ones inherited by the child, causing it to behave the same way. If an event is added directly to a child object, then the parent's event is discarded. It is, however, possible to still inherit the event using the GameMaker Language code.

Making a parent

To make an object a parent in GameMaker, you actually need to open up the object that is going to be the child of that parent. In the object's properties on the left side, there is a button that says Parent on it.

By clicking on the blue options button to the right, a drop-down list will...

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