Points calculating (left lifes, rest-time, Bonus) = Score
Hi,
I want to have set a score at the end of each level (left lifes (per each left life = 100), rest-time, Bonus)
So the calculating works with the life and the bonus. But not with the left time.
I do a timer, which counts down from 60 to 0.
Then I said after the actor reach the end of the level, that "My Timer" (integer; which is the current Level-Time) will be changed (attribute) into the "TimerLvl1" (integer) which is only the time for the Level.
Also I save the attritute to "TimerLvl1"
Then in the next scene I load this attribute (must I save and load it?) and want to display the rest of the time (Display Text: "game.TimerLvl1".
But I get only a "0" and so the calculating doesn't work with all values.
What is wrong?
Best,
I want to have set a score at the end of each level (left lifes (per each left life = 100), rest-time, Bonus)
So the calculating works with the life and the bonus. But not with the left time.
I do a timer, which counts down from 60 to 0.
Then I said after the actor reach the end of the level, that "My Timer" (integer; which is the current Level-Time) will be changed (attribute) into the "TimerLvl1" (integer) which is only the time for the Level.
Also I save the attritute to "TimerLvl1"
Then in the next scene I load this attribute (must I save and load it?) and want to display the rest of the time (Display Text: "game.TimerLvl1".
But I get only a "0" and so the calculating doesn't work with all values.
What is wrong?
Best,
Comments