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,511
Reaction score
14,854
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
588
Reaction score
256
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

Original Character Contest Winners Season 3 Pack! is now live!

I know it's a waste of time, but I decided to create a script that forces the RM2k game to always be in windowed mode. Just for fun anyway.
Rm2k.png
Coding some stuff. I just hope I'll be able to finish before school starts.
It's nice and breezy as well cool here, no AC needed! But keep you cozy

Forum statistics

Threads
112,438
Messages
1,068,309
Members
146,090
Latest member
dannyraymilligan
Top