GameClient.TileEngine.Engine ConvertCPtoTP
From VbGORE Visual Basic Online RPG Engine
Contents |
Purpose
Converts a click position (the pixel position on the screen) to a map tile position. Used to figure out what tile the cursor is over.
Parameters
- cx
- Clicked screen X pixel co-ordinate.
- cy
- Clicked screen Y pixel co-ordinate.
- tx
- Returned map X tile.
- ty
- Returned map Y tile.
Special notes
None
Calls functions
None