MZ Timer counting up

Hello!

I am currently working on a nearly finished project, where the player has to escape a room in a given time. So far I managed to event everything or write little snippets and the use of one plugin, but there is one last thing I am struggeling with:
The timer counts down and on reaching 0 the player gets a message that it is up, but that they are allowed to still finish the game.

Here I would love the timer to count up again, so the player has a good idea of how much overtime they had.

I found the function I needed in @Eliaquim 's timer plugin, but that also gave me two huge downsides that I could not ignore.
First of all, after every teleport, it took nearly a full second for the timer to appear again (which the "original" did not), and second, the timer is slightly cut off on the right side and also looks a little different:
1673797134703.png


Here is the default in the same size:
1673797189406.png


So basically, all I wish for, is a timer that counts up, and nothing else, so that I can give the player a "a little over, but still great" or a "long over, but that does not matter, you made it!" message in the end ;3

My only other plugin is a the instant player teleport by Hudell.
So, you'd like the default timer to sometimes count up instead of down? This should be relatively simple.

Code:
var _Game_Timer_update = Game_Timer.prototype.update;
Game_Timer.prototype.update = function(sceneActive) {
    if(!$gameSwitches.value(42)) _Game_Timer_update.call(this, sceneActive)
    else if(sceneActive && this._working) this._frames++;
};

This snippet will make the timer go up if the switch 42 is true. Or at least I hope so - I don't actually have MZ to test this, but this seems like a fairly simple change.
I wonder why you dont event the timer as well?
it's really easy, but why counting down and than back UP?

I dont know the entire mechanic behind this (this might be a parallel event),
but it gives you all the control you need 🙂
Hi there!
I believe I fixed the issues you pointed out in the new version 5.2.1(MV and MZ).
Thanks for tagging me!
Thanks guys, I really appreciate it! I am about to send the demo out and will then try out the suggested solutions and report back :3

Original thread: https://forums.rpgmakerweb.com/threads/timer-counting-up.154128/