Store the coordinate of image?
BMM_Archive · July 15, 2026
Original Source
- Original title: Store the coordinate of image?
- Original author: kapoleo
- Original date: March 30, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/store-the-coordinate-of-image.59639/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
Hi, I am trying to add a mini card game in my RPG, but there is an issue about the reaction when mouse over image. Here is the situation, a several of cards(backside, using same image) are being shown on the screen, when the mouse hovers on one of the cards, a new image(a brighter backside, using same image) will replace the old one at the same coordinate,
Archived First Post
I am trying to add a mini card game in my RPG, but there is an issue about the reaction when mouse over image.
Here is the situation, a several of cards(backside, using same image) are being shown on the screen,
when the mouse hovers on one of the cards, a new image(a brighter backside, using same image) will replace the old one at the same coordinate,
I wrote a HTML script with similar function, in case my words make you confused, (And I dunno how to apply it in RM, sorry I just learnt scripting a couple weeks T_T)
In my script, I used array to store the coordinate of each image, but I wanna make it more flexible. So that every time the mouse hovers on the "backside" image, store the coordinates of this image as variable, and use this variable as the coordinates of the new image, then show the new image. And when the leave, remove this new image.
Is it possible to use event to do that?
Thank you for watching this post!
View attachment script with similar function.html
Downloads / Referenced Files
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.
- Local mirror: script-with-similar-function.html_.bin
SHA-256:116f11a46310c132f2dfd2dd655da1f78edae61d6b430fbedc659d21f29469c9
Original attachment URL: https://forums.rpgmakerweb.com/attachments/script-with-similar-function-html.34958/
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...