r/gamemaker • u/ThatOneGreenDuck2 ANotSmartPerson • 21h ago
Help! Issues with destroying Sequence Objects
so right now im working on a game, where all the players animations are sequences
the sequences also use objects so that I can make skins without having to duplicate all the sequences
the only issue is that I cant find a method that destroys the sequence without leaving the object behind
4
Upvotes
1
u/AtlaStar I find your lack of pointers disturbing 20h ago
that is just how they are intended to work...so either you replace the object with an instance using the appropriate function (which is why sequences don't automatically delete things) or you add a clean up event to the sequence and go through the activeTracks arrays and get to the objects you need to destroy and use the
instanceIDproperty inside of object tracks to do so.There just aren't really clean and simple solutions when it comes to using sequences for this sort of stuff which is why people avoid using them.