• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Objects that reference other objects that have since been destroyed

FacesOfMu

Member
Trying to find out what problems arise in the following scenario:

Object1
Object2.pointing = Object1
instance_destroy(Object1)

So what is in Object2.pointing now?
 
You could answer that yourself by running debug and seeing for yourself.
Object2 "pointing" variable still has the id of Object1, even if it doesn't exist anymore - an id is just a number.
 
Top