RMMZ Disable Vehicle movement when not moving MZ

Powell

Veteran
Veteran
Joined
Mar 19, 2018
Messages
91
Reaction score
6
First Language
English
Primarily Uses
N/A
Is there a way to disable Vehicles from "moving" when they are not moving? (So the movement animation only plays when they Vehicle moves) Perhaps something to add to a plugin?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,504
Reaction score
14,842
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.

 
Last edited:

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
582
Reaction score
250
First Language
PT-BR
Primarily Uses
RM2k3
Hello again!
You mean to stop the animation "walking"?
 

myenemy

Veteran
Veteran
Joined
Jan 17, 2014
Messages
82
Reaction score
39
First Language
Spanish
Primarily Uses
RMMZ
"Stepping animation" in the editor is what he means. I'll check if it's easy so you can use a snippet.
[Edit]
This is the part of the code you are looking for.
JavaScript:
Game_Vehicle.prototype.refresh = function() {
    if (this._driving) {
        this._mapId = $gameMap.mapId();
        this.syncWithPlayer();
    } else if (this._mapId === $gameMap.mapId()) {
        this.locate(this.x, this.y);
    }
    if (this.isAirship()) {
        this.setPriorityType(this._driving ? 2 : 0);
    } else {
        this.setPriorityType(1);
    }
    this.setWalkAnime(this._driving);
    this.setStepAnime(this._driving);
    this.setTransparent(this._mapId !== $gameMap.mapId());
};
You can create a plugin script copying that and changing this.setStepAnime(this._driving); with this.setStepAnime(false);
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I always end up having issues with things i'd never expect.

Capture.PNG

Those friggin mountains man xD
Time for my daily walk/jog ''Literally starts raining while I open the door''
I just discovered there's a giant jellyfish in the Ace RTP. My day is made.
I'm pretty sure I submitted a username change like 4 months ago.
...
No offense but uh, still waiting for my name to be updated :/

Forum statistics

Threads
112,398
Messages
1,068,045
Members
146,048
Latest member
Sergibo
Top