Movement speed changes when getting off a vehicle?

Greetings!


I have the speed set to 2 for players. However, when you leave a vehicle it resets the speed to the default of 4. I don't really understand how I can resolve this because I have been searching for hours! Any help or advice is much appreciated. 
wow - 2 is incredibly slow!  You sure you want the player to be that slow?


In the rpg_objects.js script, go to line 7921 (this is in the newest version, if you haven't made any changes to the script).  It's Game_Player.prototpye.getOffVehicle, and it sets the move speed to 4.  Change it to 2.


You can also change Game_CharacterBase.prototype.initMembers to set the move speed to 2 (line 6229 of the same script) so the player starts at that speed (otherwise you'd have to do it through an event).
Thank you for the quick response! 


I suppose I should have left a bit more detail. The reason why I have it set at 2 is because I decreased the size of my sprite and thus reduced the movement speed to make it relative to its size, and the reason I did that was because I made a custom picture for an overworld map that looks wonderful but was a bit too small for the normal size sprite and editing the picture only resulted in poor quality. Long story short, I shrunk the size of the sprite and reduced it's movement speed to 2 for the picture I created to work better. The game isn't set at 2 until this point in the game. I guess changing the game script to make this function work wouldn't be of my benefit because I only created an event to change my movement speed and shrink my sprite when you enter the overworld/picture I created. 
Ah, okay.  That clears things up, and gives me a better solution.


Choose a switch that you can use to turn the slow speed on and off.  In this example I'll use switch 15.  Turn it on when you want the player to move at speed 2, and off when you want them to go back to the default speed.


Now change the command on that line to this:

Code:
this.setMoveSpeed( $gameSwitches.value(15) ? 2 : 4);



At the point where you miniaturize the player, you'll need to change the move speed to 2 via a Set Move Route command, and when you change them back to full size, you'll need to change the move speed to 4 via a Set Move Route command.  The change above ONLY adjusts the speed when they get off a vehicle.


And ignore what I said about changing Game_Character.  
Thank you Shaz! You're the best! It's working perfect. <3

Original thread: https://forums.rpgmakerweb.com/threads/movement-speed-changes-when-getting-off-a-vehicle.59372/