Temporarily remove Message Pause Cursor

Hello,

By default, when a message has finished displaying all of the words and is waiting for player input, a little animated cursor is shown to indicate that the player should press the confirm button to proceed.

I would need to keep the cursor in the game but at some point in my game I would like to temporarily remove it and then put the cursor back.

I'm not often on Rpg Maker MZ but I haven't seen this feature, if I missed it please forgive me.

Thanks for help me.

Edit: also I need to specify that I need this temporarily so I must be able to remove it and then bring it back I don't need this for all my game as I was able to see elsewhere.

https://i.ibb.co/hyxt6h0/ezgif-com-optimize.gif

gif 02.gif
Try this to hide cursor:

// Hide Cursor
document.body.style.cursor = 'none';

And this to show cursor:

// Show Cursor
document.body.style.cursor = 'none';
Try this to hide cursor:

// Hide Cursor
document.body.style.cursor = 'none';

And this to show cursor:

// Show Cursor
document.body.style.cursor = 'none';

Thanks for the answer but you write "document.body.style.cursor = 'none';" twice for show and hide.

I tried to hide him but it didn't work, this makes the mouse cursor disappear, not the text cursor.

I need the same for the cursor in the message windows.

Thanks

Edit: also I need to specify that I need this temporarily so I must be able to remove it and then bring it back I don't need this for all my game as I was able to see elsewhere.
I found help here: https://www.rpg-maker.fr/index.php?page=forum&id=29457&deb=1&ancre=1235607#rech

Thanks to the help, Roi of the Suisse, a solution has been found!

If you want to modify the basic cursor, with the plugin it is possible to specify the display position and animation of the cursor depending on the game.

Plugin link: https://nine-yusha.com/plugin-galgepausesign/

If you want to remove the game cursor at some point in your game.

In the script in the following paragraph:
Code:
    Window_Message.prototype._updatePauseSign = function() {
        const sprite = this._pauseSignSprite;
        if (!this.pause) {
            sprite.alpha = 0;
        }
        sprite.visible = this.isOpen();
    };

You can replace the following part of code:
Code:
        if (!this.pause) {

By the following new code:
Code:
        if (!this.pause || $gameSwitches.value(91)) {

The cursor will be hidden if switch 91 is on.

Capture.png


You can choose any number you want instead of "91".

Thank you Roi of the Suisse for the help.

Original thread: https://forums.rpgmakerweb.com/threads/temporarily-remove-message-pause-cursor.161126/