点击图片可看到更多讯息
开始使用于
- 游戏:
- 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
注意事项
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;