Simon Gust
Member
I'm in the making of a custom room editor and I've broken my head over how I want to enlist, place and save/load resources (sprites, objects).
I used to save the index of the resource. That plan was bad as if I restructure my resource tree it would swap out sprites. The new plan is to use the name via sprite_get_name and asset_get_index. But that too isn't as save as I want it. If I change the name of a resource my save can be considered corrupted.
Is there some form of address that never changes and I don't have control over?
It's not a big deal but it would be most optimal if there is.
I used to save the index of the resource. That plan was bad as if I restructure my resource tree it would swap out sprites. The new plan is to use the name via sprite_get_name and asset_get_index. But that too isn't as save as I want it. If I change the name of a resource my save can be considered corrupted.
Is there some form of address that never changes and I don't have control over?
It's not a big deal but it would be most optimal if there is.