Store the coordinate of image?

kapoleo

Warper
Member
Joined
Mar 25, 2016
Messages
1
Reaction score
0
First Language
not english
Primarily Uses
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
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top