How can I make events work in such a way where if I click on a picture with an event underneath it (point and click style gameplay), I can click on any pixel of that object for the game to register the action instead of having to click on a specific tile (which is very imprecise in comparison)?
Pixel perfect events
RPG Maker MZ SupportI hope I understand what you are trying to do.
You can use the ButtonPicture plugin that comes with MZ to make any image selectable and call a Common Event. Then you could have that Common Event activate the map Event if you wanted.
The ButtonPicture plugin makes the entire image clickable.
You can use the ButtonPicture plugin that comes with MZ to make any image selectable and call a Common Event. Then you could have that Common Event activate the map Event if you wanted.
The ButtonPicture plugin makes the entire image clickable.
I guess the OP doesnt want the transparent pixels to trigger a click?
Don't know about ButtonPicture but Triacontane's PictureCallCommon has transparency detection.
github.com
RPGMakerMV/PictureCallCommon.js at mz_master · triacontane/RPGMakerMV
RPGツクールMV、MZで動作するプラグインです。. Contribute to triacontane/RPGMakerMV development by creating an account on GitHub.
Maybe you'll know what I'm talking about. I'm testing the plugin and I have this problem:
I set up an image and a text message that pops out if I click on that image. Except if I click on that image more than once, let's say 10 times, I have to go through 10 text pop ups before they disappear, instead of just once. Do you have an idea as to why it's like that?
This likely has to do with the fact that the plugin is constantly monitoring for the click of the picture, but show text commands pause the interpretter. Each click is adding the action to the interpretter, but the event interpretter won't progress until you clear out the text box.
This would happen regardless of whether you have a text box or not, so it was probably a good test to verify that functionality.
If you only want something to happen once, then you likely need to set up a conditional for on click.
Something such as:
if switch is off:
turn switch on
[do stuff]
turn switch off
This way every subsequent click will run the common event, check if the switch is off. If it is, then it can proceed normally, but if it isn't it will just do nothing. The turn switch off at the end of the event basically primes the event to be triggered again for next time.
Or in short, the switch and conditional is - in a sense - turning off the function of the attached common event.
Appreciate the help very much!
Original thread: https://forums.rpgmakerweb.com/threads/pixel-perfect-events.174675/