GameMaker Can I predefine Creation Code?

Neptune

Member
Can I pre-define what goes in creation code? So whenever I drag an instance into the room it already has a nice template, where I can toggle some values?
upload_2019-4-13_9-55-6.png
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Not exactly... What you should do is create a "parent" object with all the predefined variables in it (use the "Variable Definitions" section of the Object Editor), then make the rest of the objects you want to use those variables children of that. Each child object will inherit the parent variables, which you can then tweak.
 

JasonTomLee

Member
Here's a small example of how you'd do it! Don't forget to call "event_inherited()" in the events you'd want to copy from the parent.

 
Top