Faster Balloon Icons in MZ?

Hello, is the speed in which the balloon icons appear and disappear adjustable? I was hoping to adjust it for some events so that it disappeared quicker. Just to be clear, I'm referring to the balloon icon image itself, reducing the time before it goes away.

(I'm trying to make something similar to how "The Coffin of Andy and Leyley" does the eye above the players head to let them know what to interact with. If there's an easier way to do this, I'd love to know how too!)
@keibetsuu Try installing this as a plugin. If game switch #1 is enabled, the balloons will run at twice their normal speed. You can change the switch ID in the code below. You can turn the switch on or off on an event-by-event basis.

If you aren't familiar with installing plugins, just ask.

JavaScript:
(() => {
    'use strict';
    const switchId = 1; // game switch id to use for fast balloons
    const _Sprite_Balloon_speed = Sprite_Balloon.prototype.speed;
    Sprite_Balloon.prototype.speed = function() {
        if ($gameSwitches.value(switchId)) return 4;
        return _Sprite_Balloon_speed.apply(this);
    }
    const _Sprite_Balloon_waitTime = Sprite_Balloon.prototype.waitTime;
    Sprite_Balloon.prototype.waitTime = function() {
        if ($gameSwitches.value(switchId)) return 6;
        return _Sprite_Balloon_waitTime.apply(this);
    }

})();

Is this what you had in mind?
There are also a number of plugins you can find in a search to add icons over interactable events.
@keibetsuu Try installing this as a plugin. If game switch #1 is enabled, the balloons will run at twice their normal speed. You can change the switch ID in the code below. You can turn the switch on or off on an event-by-event basis.

If you aren't familiar with installing plugins, just ask.

JavaScript:
(() => {
    'use strict';
    const switchId = 1; // game switch id to use for fast balloons
    const _Sprite_Balloon_speed = Sprite_Balloon.prototype.speed;
    Sprite_Balloon.prototype.speed = function() {
        if ($gameSwitches.value(switchId)) return 4;
        return _Sprite_Balloon_speed.apply(this);
    }
    const _Sprite_Balloon_waitTime = Sprite_Balloon.prototype.waitTime;
    Sprite_Balloon.prototype.waitTime = function() {
        if ($gameSwitches.value(switchId)) return 6;
        return _Sprite_Balloon_waitTime.apply(this);
    }

})();

Is this what you had in mind?
This is perfect, thank you so much! i wasn't really expecting much of a response!
I have a few questions about it:
-Is there anyway to make it a looping animation until a switch is turned off?
-Is there anyway to make it fade in, and fade out?
If its impossible to do, its okay, the plugin is already really helpful!
It'd definitely be possible to extend the balloon sprite with those features, but—just thinking out loud here—something like looping starts to deviate away from the way that the sprite is intended to work. (Which is to say, start the balloon and then forget about it).

In that case, it's probably a good idea to take @ATT_Turan's suggestion and look for a plugin designed with your specific purpose in mind. I don't know any off of the top of my head, but others can likely suggest something.
I agree...it sounds like you started with balloons because the icons look like the images you want to see, but the functionality you're asking for is not what the balloons do.
It'd definitely be possible to extend the balloon sprite with those features, but—just thinking out loud here—something like looping starts to deviate away from the way that the sprite is intended to work. (Which is to say, start the balloon and then forget about it).

In that case, it's probably a good idea to take @ATT_Turan's suggestion and look for a plugin designed with your specific purpose in mind. I don't know any off of the top of my head, but others can likely suggest something.
Sorry for the late reply- but alright! I'll try searching!

Original thread: https://forums.rpgmakerweb.com/threads/faster-balloon-icons-in-mz.162537/