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.

GameMaker Essentials
By :

GameMaker Essentials
By:
Overview of this book
Table of Contents (16 chapters)
GameMaker Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Introducing GameMaker
Getting Started
Resource Management
The GameMaker Language
Sprites
Making a Game
Game Settings and Exporting
Index
Customer Reviews