Hi. I may be using the wrong keywords but I've tried my best to look all over for a way to do this. you know that In some pet caring games like that one pokemon ds game and tomodatchi life where if you 'pet' your pet by rubbing the stylus on their heads, you get a response? I'm trying to do that but in rpgmaker with the mouse. I have a plugin that allows me to use the mouse as like a "point and click" sort of thing and it does have the option to activate events with just hovering over it, I just need to know how to use something like that or build some system where you can continuously pet something and keep getting awarded with responses from it. Any ideas?
MV How to do 'petting' interaction with hovering a mouse?
RPG Maker MV SupportWelcome to the forum!
You can do this without any plugins using a parallel event process that checks to see if the player is clicking the mouse in the correct spot on the pet.
This can be as simple or as complex as you want to make it as far as the interaction and visual or audible results.
The Conditional Branch event command (page 4) has an option for keyboard interactions but not mouse so you would probably have to use the Script option with something like:
TouchInput.isPressed()
The RPG Maker MV_MZ Script Calls List has an entire section for mouse input starting around line 597 that you can read about and experiment with.
You could increment a variable each time the parallel event detects the mouse click or whatever and when it reaches the desired amount, you reward the player.
That is the general idea at least.
I hope that helps some and good luck on your project!
You can do this without any plugins using a parallel event process that checks to see if the player is clicking the mouse in the correct spot on the pet.
This can be as simple or as complex as you want to make it as far as the interaction and visual or audible results.
The Conditional Branch event command (page 4) has an option for keyboard interactions but not mouse so you would probably have to use the Script option with something like:
TouchInput.isPressed()
The RPG Maker MV_MZ Script Calls List has an entire section for mouse input starting around line 597 that you can read about and experiment with.
You could increment a variable each time the parallel event detects the mouse click or whatever and when it reaches the desired amount, you reward the player.
That is the general idea at least.
I hope that helps some and good luck on your project!
aaaah i could try this out later. thank you!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-do-petting-interaction-with-hovering-a-mouse.180130/