【RPG Maker MZ】粗暴地去掉MZ的战斗动画播放
管理播放动画的代码在sprites.js中,搜索下面代码,然后注释掉范例部分即可。
Spriteset_Base.prototype.createAnimation = function(request) {const animation = $dataAnimations[request.animationId];const targets = request.targets;const mirror = request.mirror;let delay = this.animationBaseDelay();const nextDelay = this.animationNextDelay();// if (this.isAnimationForEach(animation)) {// for (const target of targets) {// this.createAnimationSprite([target], animation, mirror, delay);// delay += nextDelay;// }// } else {// this.createAnimationSprite(targets, animation, mirror, delay);// }
};
这种简单粗暴的方式是直接关闭掉了战斗中的动画演出,及命令角色使用某个技能后,直接弹出伤害数字或者效果。单纯这样修改会极大影响游戏体验。建议结合if判定,通过按钮、系统设置、开关等方式让玩家自主决定是否屏蔽动画。
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
