public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Store the coordinate of image?

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

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

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,


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

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
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.

#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar