Problem with player moveRoute & character offset plugin

dayseven0314

Villager
Member
Joined
Jul 25, 2017
Messages
6
Reaction score
1
First Language
Chinese
Primarily Uses
RMMV
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:

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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Yo Ho Ho... Time flies when you are having rum...

I'm rewatching Glee, just watched grilled cheesus.
Now I'm not sure if I'm hungry or I want to cry.
I just completed Ara Fell - completing the game unlocks an Epilogue. An interesting thing to possibly consider for my games.
I decided to try to make a mucha-styled artwork, and by now I've sunk more time in studies and sketches than I usually do in the whole thing. Fingers crossed it's worth it!
Since we have a lot of new faces, please be sure to read the forum rules under the Help tab at the top. Thanks!

Forum statistics

Threads
99,452
Messages
965,441
Members
131,063
Latest member
Quimey
Top