• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

GMS 2 Object parent

Yal

šŸ§ *penguin noises*
GMC Elder
Yes, it's called a grandparent. Objects are treated as special cases of everything they are descendants of, even if it's not directly... e.g. not just their parent, but also the parent of their parent's parent (and so on). Their empty events will run code of their nearest ancestor (and with liberal use of event_inherited you can run the code of ALL their ancestors, if required).
 

mikix

Member
Yes, it's called a grandparent. Objects are treated as special cases of everything they are descendants of, even if it's not directly... e.g. not just their parent, but also the parent of their parent's parent (and so on). Their empty events will run code of their nearest ancestor (and with liberal use of event_inherited you can run the code of ALL their ancestors, if required).
Thank you for this information!
 
Top