Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如题 如何获取敌人与主角的距离?
用系统表达式distance就行了,distance填四个参数,分别是点A的x坐标、y坐标和点B的x坐标、y坐标,然后就会自动计算得到两点间距离,例如 distance(主角.x,主角.y,敌人.x,敌人.y)
感谢!!!!!!!!