I need some help... :(
Posted: Mon Feb 20, 2012 9:25 pm
So, I have a problem with my players Lives. I have it set to when you start the game, the player has 3 lives. and if you die, you lose one(Obviously).
I have it set to if you lose all your lives(Lives.textNumber=0), it will load the GameOver.dat file. And then takes you back to the title screen. but my
problem is, when you start the game again, you still have 0 lives?? I know this is because it's a global variable, and I am using LoadVars and SaveVars,
but I have no idea how to fix this.. I need the variable in the first level, because I have it set that if you die and, (Lives.textNumber >= 1) it reloads the
level and minus's a life.. Any help would be GREATLY appreciated..
Thanks again for looking
I have it set to if you lose all your lives(Lives.textNumber=0), it will load the GameOver.dat file. And then takes you back to the title screen. but my
problem is, when you start the game again, you still have 0 lives?? I know this is because it's a global variable, and I am using LoadVars and SaveVars,
but I have no idea how to fix this.. I need the variable in the first level, because I have it set that if you die and, (Lives.textNumber >= 1) it reloads the
level and minus's a life.. Any help would be GREATLY appreciated..
Thanks again for looking