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,464
Reaction score
14,816
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
563
Reaction score
240
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 Profile Posts

i want to make videogame, though i am burned out on games with RPG elements, but the only gamedev tool i know how to use is rpg maker. :/
Rakon wrote on xizorandy's profile.
Hello! I found a post of lightning strike pictures you posted. You said you made them, am I allowed to use them in my commercial project. Would be really cool!^^
evhht2zr.png

Have a nice day!
It's almost 3 month and this piece of drawing is still not finished yet.
aaaa.jpg

Really busy with other stuffs like commission and coping with personal problem.
Stella & Elyune, maybe used for promotional art if my game project finished one day.

Forum statistics

Threads
112,254
Messages
1,066,844
Members
145,865
Latest member
Hallistra
Top