jigglypuff_fun
Member
Hey all! I'd like to figure out the best way to restore an object to its exact previous state from an earlier frame, including all variables that it's managing, which would effectively take the object back in time. Given some of my objects have 100+ variables, and on top of that I have dozens of objects, I'd rather not manually log each variable every frame and perform a restoration that way. Unless there's an automated way of logging those variables?
I was wondering about creating an instance_copy() every frame to create a stamp of that object, and then deactivating it. Then if I wanted to go back in time, I would activate the appropriate frame's object and delete the original object, but this brings some pain as well - such as the id changing, plus I'm not sure if that would bog down the game at all from a resourcing perspective.
What would be the best way to do this in GameMaker? I've been coding in GML for a few years now, but I'm just not sure how to tackle this one.
I was wondering about creating an instance_copy() every frame to create a stamp of that object, and then deactivating it. Then if I wanted to go back in time, I would activate the appropriate frame's object and delete the original object, but this brings some pain as well - such as the id changing, plus I'm not sure if that would bog down the game at all from a resourcing perspective.
What would be the best way to do this in GameMaker? I've been coding in GML for a few years now, but I'm just not sure how to tackle this one.