what i go in to do is
when player out the table it will jump to the ground
by play jump and use function to change character offset
and here's what i got:
look like it Happened too early...
here's my cod:
here's result what i want :
it's use common events and change character image . is not the way what i want
how can i fix it
when player out the table it will jump to the ground
by play jump and use function to change character offset
and here's what i got:
look like it Happened too early...
here's my cod:
Code:
var _Game_Player_prototype_update = Game_Player.prototype.update;
Game_Player.prototype.update = function(sceneActive){
_Game_Player_prototype_update.call(this, sceneActive);
var x = this._x;
var y = this._y;
this.upbateStepHigh(x,y);
};
/*setStepHigh() is function to change character offset*/
Game_Player.prototype.upbateStepHigh = function(x, y){
if(!this.isStepHigh()){return;}
if(!this.isStepHighOnMap(x, y) && !this.isStepHighOnEvent(x, y)){
var lst = [{ code: Game_Character.ROUTE_JUMP, parameters: [0,0] }, {code:Game_Character.ROUTE_SCRIPT, parameters: [this.setStepHigh(false)]}, { code: Game_Character.ROUTE_END }];
var route = { list: lst, repeat: false, skippable: false, wait: true };
this.forceMoveRoute(route);
}
};
here's result what i want :
it's use common events and change character image . is not the way what i want
how can i fix it