[RPGMZ]Event, mouse over the image

Hi guys, I would like to know if without plug-in it is possible to make sure that when the mouse over an image passes it behaves as I want.

Waiting for your eventual response, I wish you a good day.
Without a plugin, I'd suggest a Parallel event checking cursor coordinates every (few) frame(s), maybe something like this:
Spoiler: Possible event
Code:
◆If:Script:const picId = 5; SceneManager._scene._spriteset._pictureContainer.children[picId - 1]?.isBeingTouched()
  ◆Text:None, None, Window, Bottom
  :    :Pic 1 hovered!
  ◆
:End
◆Comment:Check once every 6 frames (10 times per second)
◆Wait:6 frames
Easy-copy version of the script I've used here for Conditional Branch > Script:
JavaScript:
const picId = 5; SceneManager._scene._spriteset._pictureContainer.children[picId - 1]?.isBeingTouched()
Replace the 5 with the ID of the picture you want to check.

A plugin would be more efficient, though. I happen to have one that lets you bind common events to "enter"/"leave" cursor actions, as well as offering optional opacity-based hit detection. Here's a link in case you're interested: view/download Cae_PictureTouch.js (Google Drive).
Thanks so much for your help 🙂
Without a plugin, I'd suggest a Parallel event checking cursor coordinates every (few) frame(s), maybe something like this:
Spoiler: Possible event
Code:
◆If:Script:const picId = 5; SceneManager._scene._spriteset._pictureContainer.children[picId - 1]?.isBeingTouched()[/INDENT]
[INDENT]  ◆Text:None, None, Window, Bottom[/INDENT]
[INDENT]  :    :Pic 1 hovered![/INDENT]
[INDENT]  ◆[/INDENT]
[INDENT]:End[/INDENT]
[INDENT]◆Comment:Check once every 6 frames (10 times per second)[/INDENT]
[INDENT]◆Wait:6 frames
Spoiler: Possible event
Easy-copy version of the script I've used here for Conditional Branch > Script:​
JavaScript:
const picId = 5; SceneManager._scene._spriteset._pictureContainer.children[picId - 1]?.isBeingTouched()
Replace the 5 with the ID of the picture you want to check.​
​

A plugin would be more efficient, though. I happen to have one that lets you bind common events to "enter"/"leave" cursor actions, as well as offering optional opacity-based hit detection. Here's a link in case you're interested: view/download Cae_PictureTouch.js (Google Drive).
Hi, I was looking for a simple MZ plugin which will allow me to activate events by mouse cursor hovering them, for example a character/object changing its animation when I point a mouse cursor at it without clicking, I found nothing usefull except what you posted here, at least it seems to be what I am looking for but I can't figure it out. I understood the trigger part but I don't know what is "picture ID" and how it's related to activating the event by mouse hovering it. Please help me, what should I do? Or maybe I'm just wrong and this pluging is not used for what I need? Thank you in advance!
@BazilR , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rpgmz-event-mouse-over-the-image.130327/