Acquire cursor X/Y position on click?

Yet another crazy arse question from yours truly...

Is there a means of acquiring the X/Y coordinates of the mouse cursor on click? Even if they were to be loaded into variables, this would be fine. I just need to know where I'm clicking to make positioning easier.
TouchInput stores the values of the mouse position if the mouse is held down, but not if it's just hovering. I don't recall if it's TouchInput.x/y or TouchInput._x/_y, so you'll have to look into that yourself.
TouchInput stores the values of the mouse position if the mouse is held down, but not if it's just hovering. I don't recall if it's TouchInput.x/y or TouchInput._x/_y, so you'll have to look into that yourself.

So you think something along the lines of:

$gameVariables.setValue(4,TouchInput._x);

Would work?
0ISl5S4.png

Yes.

Excellent!

Thanks so much!
Please, can someone help me how to get coordinates when i click on map. Because i want to put a picture on parallax map, but is boring to find X and Y coordinates. Sorry my english.
http://finalbossblues.com/rmvxace-using-map-coordinates-p1/
I use Rpg Maker mv, but thanks for reply.
For MV:
Please, can someone help me how to get coordinates when i click on map. Because i want to put a picture on parallax map, but is boring to find X and Y coordinates. Sorry my english.
https://forums.rpgmakerweb.com/index.php?threads/image-picture-positioning-utility.62228/
Thanks, but i mean picture X and Y.

Thanks. I did use this, but i found a bug with Parallax Map. Y coordinate do not showed exacly. I post my bug on forum, now i just wait.

@decinbr , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Next time, please start a new thread.

Original thread: https://forums.rpgmakerweb.com/threads/acquire-cursor-x-y-position-on-click.74557/