How to change Timer position temporarily?

Yesterday I make a scene that player have to answer questions in limited time.
Just like……exam!

I need to put my Timer into the right and below corner of the screen or it will be blocked by the text window.

But in the other part of the game the Timer should be placed at the original place.
How to change the postion of Timer temporarily?

1740979346885.png
Timer position is hard coded in Sprite_Timer class.
In order to change that you need to overwrite its method.

SceneManager._scene._spriteset._timerSprite.updatePosition = function(){this.x = Graphics.width-this.width;this.y = Graphics.height-this.height;}

Change back:

delete SceneManager._scene._spriteset._timerSprite.updatePosition
Timer position is hard coded in Sprite_Timer class.
In order to change that you need to overwrite its method.

SceneManager._scene._spriteset._timerSprite.updatePosition = function(){this.x = Graphics.width-this.width;this.y = Graphics.height-this.height;}

Change back:

delete SceneManager._scene._spriteset._timerSprite.updatePosition
It works!Thanks a lot.
I wonder what can I do if I want to place it in specific positon?(By setting the number of x and y?)
(Just like put the timer into the place like the image below.)
1740983900246.png
Yes, you can just change x and y.
SceneManager._scene._spriteset._timerSprite.updatePosition = function(){this.x = 50;this.y = 300;}
Yes, you can just change x and y.
SceneManager._scene._spriteset._timerSprite.updatePosition = function(){this.x = 50;this.y = 300;}
Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-timer-position-temporarily.175960/