Hi everyone, perhaps someone could help me out here. I've seen a few posts that show how to get the x,y coordinates of your mouse click but what I would like to do is to get the x,y coordinates of a tile that I click on the map.
What I know how to do:
I know to get the x,y coordinates (tilemap) of an event and store them in variables as well as getting the x,y coordinates (in pixels) of a click on the map and store them in variables.
What I want to know how to do:
I would like to know how to store the x,y coordinates (tilemap) of the tile I click on the map in variables.
Example: $gameVariables.value(a) = (x coordinate of the tile I click)
$gameVariables.value(d) = (y coordinate of the tile I click)
I was looking around in the core plugin but I couldn't find where to get anything besides pixel coordinates.
Thank you
What I know how to do:
I know to get the x,y coordinates (tilemap) of an event and store them in variables as well as getting the x,y coordinates (in pixels) of a click on the map and store them in variables.
What I want to know how to do:
I would like to know how to store the x,y coordinates (tilemap) of the tile I click on the map in variables.
Example: $gameVariables.value(a) = (x coordinate of the tile I click)
$gameVariables.value(d) = (y coordinate of the tile I click)
I was looking around in the core plugin but I couldn't find where to get anything besides pixel coordinates.
Thank you