I'm not sure this is the right place to post it but:
I'm trying to make a game where you have several levels with a timers. the problem is: I need to add time each level. for example: I set timer to 2:00 on the first map. After map change I need to add 2 minutes to timer, so if player finished the map when he had 35 seconds, then he was having 2 minutes and 32 seconds on the next map.
I found somewhere combination of commands:
var time = $gameTimer.seconds + N (of course I'm changing N to number of frames I need to add)
$gameTimer.start(time);
but after using it my timer shows NaN:NaN instead of time...
Is there any way to add some time to timer, or I should use "hiden timer" made of variables instead?
(I'm actually using it now. I just want to let player know how much time he have left)
sorry if my post was hard to understand. I'm still working on my english...
I'm trying to make a game where you have several levels with a timers. the problem is: I need to add time each level. for example: I set timer to 2:00 on the first map. After map change I need to add 2 minutes to timer, so if player finished the map when he had 35 seconds, then he was having 2 minutes and 32 seconds on the next map.
I found somewhere combination of commands:
var time = $gameTimer.seconds + N (of course I'm changing N to number of frames I need to add)
$gameTimer.start(time);
but after using it my timer shows NaN:NaN instead of time...
Is there any way to add some time to timer, or I should use "hiden timer" made of variables instead?
(I'm actually using it now. I just want to let player know how much time he have left)
sorry if my post was hard to understand. I'm still working on my english...