PDA

View Full Version : Googlescript Get Cursor Click Position



Kodeine
July 15th, 2012, 04:09 PM
So I'm trying to create an isometric turn based game with google script. I'm currently at the fundamental level of implementing a grid for things to move on and that allows the player to select a particular tile on the grid (so you can select where you want to move your object to).

But before I can actually do that I need to be able to get the X and Y of the users mouse click (from anywhere on the page) so we can then see what tile in the grid that falls under. But that's the problem. I've been trying to find anything on the Internet about capturing X and Y in GS but were unable to.

Does anyone know how I could do such?