Im quite new to mv again so is there any way to set variables to the x and y position of the mouse cursor in the game window?
Setting 2 variables to the mouse's x and y position?
RPG Maker MV SupportUse the script section and add the following:
For variable X ->
For variable Y ->
Keep in mind that if you want these values to always be accurate you'll need to put the variables in a parallel event.
For variable X ->
TouchInput.xFor variable Y ->
TouchInput.yKeep in mind that if you want these values to always be accurate you'll need to put the variables in a parallel event.
MV doesn't update that stuff when you just move around the cursor, you need to click.
Here's one thread where someone wrote stuff to do it [edit: without click] (though depending on what you mean with x and y position, you might need something else):
forums.rpgmakerweb.com
Here's one thread where someone wrote stuff to do it [edit: without click] (though depending on what you mean with x and y position, you might need something else):
Saving Mouse Position to Variables?
What I'm looking for is a way to store the X position of the mouse cursor to one variable and the Y position of the mouse cursor to another. Not the coordinates of where the mouse has clicked, just the coordinates of where the cursor currently is. I've seen this question asked like a million...
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/setting-2-variables-to-the-mouses-x-and-y-position.176354/