切換
舊版
前往
大廳
主題

RM MV學習筆記(48) 直向地圖

路漫行 | 2018-07-13 23:53:28 | 巴幣 2 | 人氣 374

#siako大大的直向地圖
#可以拿來應用在某些小遊戲上





方便複製貼上用的code:

Game_Player.prototype.update = function(sceneActive) {
var lastScrolledX = this.scrolledX();
var lastScrolledY = this.scrolledY();
var wasMoving = this.isMoving();
this.updateDashing();
if (sceneActive) {
this.moveByInput();
}

Game_Character.prototype.update.call(this);
//this.updateScroll(lastScrolledX, lastScrolledY); (玩家移動不滾動地圖, 這段mark)
this.updateVehicle();
if (!this.isMoving()) {
this.updateNonmoving(wasMoving);
}
this._followers.update();
};


送禮物贊助創作者 !
0
留言

創作回應

更多創作