Screen coordinates

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

User avatar
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Screen coordinates

Postby frcol » 23 Jul 2015, 13:49

is there a way to get the screen coordinates by the tile position?
Example: I clicked the tile 23,45. What´s it´s screen x, y position (top left)?

I´m getting the mouse position nowadays, but it has the tile width and heigth range that I don´t want.
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Screen coordinates

Postby Bax » 23 Jul 2015, 15:03

You should get the tile's x and y coordinates and play with the localToGlobal or globalToLocal functions provided by Flash.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 9 guests