Game Maker - 检查多个同名对象的位置

时间:2018-03-06 14:30:17

标签: position game-maker

如何检查房间中同一个物体的两个位置值?我的房间里有两个相同的物体,需要找到每个物体的x和y位置。

1 个答案:

答案 0 :(得分:0)

The "CL" rule is missing the "ConformanceMode" property
例如,

获取所有X位置:

with (objName) {
    // now x is each objName.x, and y is each objName.x, while to access object from which you called you need to use other.xxx (except VAR defined variables)
}