加强了游戏的移动指令,对制作追逐类游戏很有用
示例
插件命令
move event 10 to position 15 20 and face left
move player to event 5
move event 7 to player and follow
clear player path
clear event 7 path
就是字面意思
移动 事件 10 到 坐标点 15 20 和 脸面朝 左
移动 玩家 到 事件 5
移动 事件 7 到 玩家 和 跟随
清除 玩家 路径
清除 事件 7 路径
脚本命令
this.setDestination(x, y, d); // 移动到x,y坐标,面朝d方向(4=左,6=右、8=上、2=下)
this.setCharacterDestination(eventId, follow) // 移动到 事件ID ,follow为开关,开为true,关为false
this.setDestination(15, 20, 2); // 移动到15,20坐标,面朝下方向(4=左,6=右、8=上、2=下)
this.setCharacterDestination(10, true) // 跟随 事件10
用了这个有时候会卡死
请问这个命令时等待还是非等待?
非等待的
请问用了这个的时候,游戏会提示cannot read property'_x'of null是什么意思啊?