GetViewPosition (Harvest)
From OxeyeWiki
(Difference between revisions)
(Created page with '{{HarvestMethod | worldX, worldY = getViewPosition() | Returns the current world view position. | | Returns two coordinates, worldX and worldY. Both are of the type Number. ...') |
|||
Line 12: | Line 12: | ||
local wx,wy = harvest.getViewPosition() | local wx,wy = harvest.getViewPosition() | ||
</pre> | </pre> | ||
+ | |||
+ | === Resources === | ||
+ | *[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions] |
Latest revision as of 16:15, 2 December 2009
worldX, worldY = getViewPosition() | ||
Returns the current world view position. | ||
Parameter | Expected Type | Description |
Returns | ||
Returns two coordinates, worldX and worldY. Both are of the type Number. |
Example
local wx,wy = harvest.getViewPosition()