Reseting Attributes

Hi everyone! I am having another problem. Again this probbally gets asked a lot because it probbally isn't too difficult! But my problem is that my attributes won't reset when you die. So I think the problem is I have a save attribute put in and that's telling everything to save and then there is the change attribute and it just won't change. Is there something I have to do?
Thanks,
ars914
Thanks,
ars914
Comments
Have you seen this Cookbook video?
When you die, what ever you use to trigger your death screen, have a rule that when die = true, change attribute (whatever attributes have been changed) and the reset the scene.
Then on your main menu, have a load to load any saved attributes that need to be remembered.
Save and loads are only for when you close your app down so you should only save stuff that needs to be remembered next time you start your game.
You'll need a couple of attributes;
WhatLevel
Life
When you compete a level, change the WhatLevel to WhatLevel you have unlocked and save that. Load it on main menu.
Life, when the player dies, reset the scene changing thing like life back to 3.
If you set the attribute for example on lives at 3, if you turn off and come back, it will go to 3 again but the user will need some way of starting up at the last unlocked level. You can control this through saving nd loading the unlocked level.
Watch the video that Slick posted above, also then look at the cookbook videos and watch the video on saving and loading!