武装突袭 Wiki
注册
Advertisement
  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Convert screen coordinates in map to world coordinates.

基本句法

句法:
map posScreenToWorld [x, y]
参数:
map : Control
[x, y]: Array - format Position2D
返回值:
Array (Position2D Format)

范例

范例1:
_WorldCoord = _Control posScreenToWorld _ScreenCoord
范例2:
_WorldCoord = _Control posScreenToWorld [_x,_y]

额外资讯

多人游戏:
-
也可以看看:
ctrlMapScreenToWorldctrlMapWorldToScreenposWorldToScreen

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on April 7, 2007 - 10:03
LowFly
Notes: You can get the screen coordinates by the UI Event Handlers onMouseButtonDown, onMouseButtonUp, onMouseButtonClick, onMouseButtonDblClick. The return Array is in 2-D, you can use it with all set-position commands.
_x = returnArray select 0;
_y = returnArray select 1;


Bottom Section

Advertisement