Storing mouse coordinates (Pixels, not tiles), is it possible?

I want to know if there's a way to know where the player is clicking (pixel-wise, not tiles). Is it possible?

I saw this thread: http://forums.rpgmakerweb.com/index.php?/topic/46956-store-mouse-coordinate-xy-in-variables-solved/?hl=%2Bmouse+%2Bcoordinates#entry476912 but that stores the tile coordinates. I want to know if the player clicks for example on 405, 607 or 120, 240, etc.

Thanks in advance.

EDIT: Nevermind, my bad, the method described in that thread does actually store the pixel-value of the mouse position instead of the tiles. This thread can be closed.
I want to know if there's a way to know where the player is clicking (pixel-wise, not tiles). Is it possible?

I saw this thread: http://forums.rpgmakerweb.com/index...es-solved/?hl=+mouse++coordinates#entry476912 but that stores the tile coordinates. I want to know if the player clicks for example on 405, 607 or 120, 240, etc.

Thanks in advance.

EDIT: Nevermind, my bad, the method described in that thread does actually store the pixel-value of the mouse position instead of the tiles. This thread can be closed.



how do you store tile coordinates?
fo player
Code:
        Px = ($gamePlayer.x-$gameMap.displayX())*48 ;
        Py = ($gamePlayer.y-$gameMap.displayY())*48 ;

for mouse
Code:
txy = [TouchInput.x, TouchInput.y];
Necro-post notice: CynicSyndrome

If you have a query - especially as, in this case, it is not identical to the OP - please start a new thread in the appropriate forum.

Original thread: https://forums.rpgmakerweb.com/threads/storing-mouse-coordinates-pixels-not-tiles-is-it-possible.48290/