ScreenToWorldCoordinates (Harvest)

From OxeyeWiki

Revision as of 22:37, 1 December 2009 by 166 MMX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Returns to values, worldX and worldY. Both are of the type Number.

Converts screen coordinates to world coordinates.

screenX Number The x coordinate of the current screen
screenY Number The y coordinate of the current screen
Parameter Expected Type Description
Returns
{{{4}}}
Harvest Library

Example

local x,y = harvest.screenToWorldCoordinates(mouseX, mouseY)
harvest.spawnChargeBomb(x, y)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox