| 赞 | 164 |
| VIP | |
| 好人卡 | |
| 积分 | 299 |
| 经验 | |
| 最后登录 | 2026-10-2 |
| 在线时间 | 5734 小时 |
- 梦石
- 0
- 星屑
- 29901
- 在线时间
- 5734 小时
- 注册时间
- 2016-3-8
- 回帖
- 1653
|
发表于 2021-4-4 11:24:35
|
显示全部楼层
本帖最后由 alexncf125 于 2021-4-4 14:25 编辑
(function(){
var _20210404_Game_Player_canMove = Game_Player.prototype.canMove;
Game_Player.prototype.canMove = function() {
//1号开关开启时, 玩家不能移动
return !$gameSwitches.value(1) && _20210404_Game_Player_canMove.call(this);
};
})();
1.js/plugin目录新建"PlayerCannotMoveWhenSwitchOn.txt"文本
2.贴上以上代码后, 保存並把文本后缀改成"PlayerCannotMoveWhenSwitchOn.js"
3.打开插件管理器並启用"PlayerCannotMoveWhenSwitchOn"
4.在那两个並行事件移动前打开1号开关, 移动完后关闭开关
5.如想在事件移动时禁示止打开菜单, 则需修改Scene_Map的updateCallMenu |
评分
-
查看全部评分
|