MV Help Needed: Changing Image Opacity on Hover in MV

Hello folks, first-time poster here. I know nothing about Java Script, so I thought I could ask for help here. I am currently making a game in MV where, for one particular minigame, I need the player to be able to hover over an image, and when they do, it should set the opacity from 0% to 100%. Is there any way to do that with scripts or plugins? I have messed around with some AI-generated stuff (it's stupid, I know, but I can't code), but that has not worked at all, and I am getting a lot of errors that break the game. Any advice or help would be very much appreciated!
keep in mind that 0% is not visible, and 100% fully visible as opacity is set
as 0 to 255.

chaucer mimosa plugin I cannot tell if the free version can do it.
another once that might work is TDDP Mouse System Ex but this require
it to setup like chaucer's, but more in mouse X > 200, mouseX , 300 so the
picture position on screen is important.

and the same thing might be applied to chaucer, but it has a picture recognition
inside of it when you hover over it, as it doesn't have the opacity, it might be
able to set it or add it inside the plugin.

try to play around with either one 🙂
I had a look at both of those you suggested, and from what I can see, it doesn’t seem like I can use/edit them to interact with the pictures in the way I was hoping for. The Chaucer one can only change the cursor from what I have seen 🙁
I have messed around with some AI-generated stuff
But have you simply Googled it? 🙁

I typed in "rpg maker mv picture hover" and got about half a dozen threads from here and Reddit pertinent to the question, plus a YouTube video tutorial.

Some of them are only for events, and some are for MZ, but - for example, there was an event script posted by @caethyril that did exactly what you were asking for MZ, so you could easily have asked her if it needed adaptation to work in MZ, and how.

It just seems like spending time getting information from people who actually know things would be a better first choice than breaking your game with computers making up code.

In any case, paste the below into a text editor, save as a *.js file, and include as a plugin

Code:
TouchInput._onMouseMove = function(event) 
{
    if (this._mousePressed) {
        var x = Graphics.pageToCanvasX(event.pageX);
        var y = Graphics.pageToCanvasY(event.pageY);
        this._onMove(x, y);
    }
    this.hoverX = Graphics.pageToCanvasX(event.pageX);
    this.hoverY = Graphics.pageToCanvasY(event.pageY);
};

Then you can check at any time the variables TouchInput.hoverX and TouchInput.hoverY to get the current coordinates of the cursor.

So you could do a parallel event on your map looking like this:

1724516320599.png


You use conditional branches to see if the cursor is within the area of the picture; if yes, and it hasn't already been made opaque, do so.

If it is outside of the picture's area, and it hasn't been made transparent again, do so.

You can can probably put a few frames of Wait at the bottom just so it isn't running every single frame without it looking delayed.
But have you simply Googled it? 🙁

I typed in "rpg maker mv picture hover" and got about half a dozen threads from here and Reddit pertinent to the question, plus a YouTube video tutorial.
That was the first thing I did but from what ive seen its only for MZ not MV. As for the event/Plugin you sent I keep getting this error code when I playtest it.

Code:
YEP_CommonEventMenu.js:1292 ReferenceError: ToutchInput is not defined
    at eval (eval at Game_Interpreter.command122 (YEP_CoreEngine.js:1836), <anonymous>:1:1)
    at Game_Interpreter.command122 (YEP_CoreEngine.js:1836)
    at Game_Interpreter.command122 (YEP_SelfSwVar.js:406)
    at Game_Interpreter.executeCommand (rpg_objects.js:8930)
    at Game_Interpreter.update (rpg_objects.js:8838)
    at Game_Event.updateParallel (rpg_objects.js:8748)
    at Game_Event.update (rpg_objects.js:8740)
    at Game_Map.updateEvents (YEP_CoreEngine.js:1667)
    at Game_Map.update (rpg_objects.js:6025)
    at Scene_Map.updateMain (rpg_scenes.js:608)


Never mind I apparently can't spell. Now I don't get the error message but from my testing nothing appears to be happening at all. 🙁
there is more info on this thread that has an extension plugin of yanfly
if you have it, so you can combine the 2.
I'm a bit confused, the player character or the mouse cursor, which one hover over the picture?
I managed to get it working. It turns out that I was just being a dingus and not using my brain. Who would have thought that actually following the instructions people give you is helpful? Thanks to everyone who helped! 😀

Original thread: https://forums.rpgmakerweb.com/threads/help-needed-changing-image-opacity-on-hover-in-mv.171367/