I have created a game with MC’s that are nested inside other ones so for example I have a Code:
_root.hat.gotoAndStop(2)
to change hat. But I also am using a save feature to save my game at stages but I want to know what kind of code I should use for the simplest way to save what frame the hat is on, when clicking the save button.
on (release) {
timeCheck.data.BLAM = _root.BLAM;
user.flush()
^ Example Save Code^
if (_root.timeCheck.data.BLAM == undefined) {
_root.BLAM = BLAM
}
else {
_root.BLAM = timeCheck.data.BLAM;
}
^ Example Load code,
Any answers would be appreciated (NOTE: MY LOADING AND SAVE CODE WORKS I JUST NEED A METHOD OF SAVING FRAME NUMBERS SO THAT IT CAN BE ON THAT FRAME ON LOAD).
Thanks in advance,