Comment on page
What is a Component?
A Component adds modifiers to the selected object giving it additional customizations and functions.
A component is a bundled set of variables 📦 that can be customized to change the way objects operate or interact with other elements in your experience.
Components allow you to refine the way your experience is...well….experienced! They speed up the process of creation by packaging variables into a simple set of sliders and inputs 🎚️ 🎛️ that define how your objects function.
For example, you can, within a few clicks, decide if your object will be impervious to damage 🛡️ using the invincibility toggle of the Health Component, or you can make an object drop a treasure once it is defeated!
Adding these components to objects in your experience does not alter the original Asset. This means you are able to have copies of the same asset in your experience and each instance can have its own unique set of customizable Components.
Components can only be added to Objects, they can't be added to BLOCKS.
Behaviors and Components go hand in hand when creating rich and dynamic experiences, but you do not have to have one in order to use the other. For example, you can use the Health Component on an object without choosing a Behaviour ⚙️ and that object will still allow you to adjust a variety of interactions and functions in your experience based on that component.
So let's take a closer look at how you can start applying Components in your own Game Maker experience.
Last modified 2yr ago