精灵绘制问题
RPG Maker MV战斗问题
在RMMV中战斗是在场景中调用战斗管理器,通过管理器去操作角色对象行动及精灵的绘制的。
入场飞身
在其中就发现一个问题加载图片进场时,会偏高,且显示的不是需要的那个需要绘制的区域。
从这可以看到人物进场时脚下的影子位置和飞身进场的位置差距挺大的且看到,不是我所理想的进场的姿势,那这发生了什么呢?
当时想到了是不是无意中调用了这里面的的偷窃的动画呢?
不过注释了 steal 后发现不是,那可能是什么问题呢?
在看到了控制台的打印后想到了是不是这个位置的出现了问题:
Sprite_Actor.prototype.refreshMotion = function() {
var actor = this._actor;
var motionGuard = Sprite_Actor.MOTIONS['guard'];
if (actor) {
if (this._motion === motionGuard && !BattleManager.isInputting()) {
return;
}
var stateMotion = actor.stateMotionIndex();
if (actor.isInputting() || actor.isActing()) {
this.startMotion('wait');console.log("待机")
} else if (stateMotion === 3) {
this.startMotion('dead');
} else if (stateMotion === 2) {
this.startMotion('sleep');console.log("睡眠")
} else if (actor.isChanting()) {
this.startMotion('chant');console.log("魔法等待")
} else if (actor.isGuard() || actor.isGuardWaiting()) {
this.startMotion(&#