Strange load attribute not working
GamersRejoice
Member Posts: 817
So I am working on my save level unlock system and I already have the logic working for the levels to unlock as you beat them. But for some reason when I throw in the load attribute in my game when I test it on Viewer it sets the unlock attribute to 3 when it should be 1. Any ideas? This is what my logic looks like:
on level 1
Rule If game.unlockedlevel is = or less then game.current level change attribute game.unlockedlevel to 2
save attribute game.unlockedlevel
level 2
Rule If game.unlockedlevel is = or less then game.current level change attribute game.unlockedlevel to 3
save attribute game.unlockedlevel
...etc
Then in the main menu I set my load attribute to unlockedlevel which is set to 1 for default and it shows up that I've beaten 3 levels already! Help please!
on level 1
Rule If game.unlockedlevel is = or less then game.current level change attribute game.unlockedlevel to 2
save attribute game.unlockedlevel
level 2
Rule If game.unlockedlevel is = or less then game.current level change attribute game.unlockedlevel to 3
save attribute game.unlockedlevel
...etc
Then in the main menu I set my load attribute to unlockedlevel which is set to 1 for default and it shows up that I've beaten 3 levels already! Help please!
Comments
Apparently GameSalad Viewer had already saved my attributes and I needed to clear the game history list in order to wipe the memory and now it works fine. So it's been working this whole time! haha!