Changing player's animation frame rate but not actual speed

Hello,

I'm using Shaz's More Character Frames plugin, and my main avatar has 14 frames for each walking direction. In other words, the sprite sheet is 14 columns and 4 rows.

The problem is that the animations are cycling too slowly, causing a "skating" effect. I need a way to speed up the FPS of the animations while not changing the actual speed at which the player moves from one tile to the next. I tried messing with Set Movement Route > Change Frequency, but that didn't do anything at all.

In searching for a solution, I came across an old post here that had a working solution, but it was for VX Ace. Is there something similar to that for MV?

Thanks!
Move frequency relates to the delay between moves, but doesn't apply to the player even when undergoing a forced move route.

By default the animation frame rate is determined by the character's speed:
Code:
Game_CharacterBase.prototype.animationWait = function() {
  return (9 - this.realMoveSpeed()) * 3;
};
So for a speed 4 character there's a delay of 15 frames (1/4 second) between every animation frame.

To change this, just save a copy of that code as a .js file (Save As > File Type: All Files, filename: WhateverYouLike.js), edit the formula as desired, and import like a plugin. E.g. maybe change the 3 to a 2. Note that this is for Game_CharacterBase, i.e. it'll affect all map characters (player, events, vehicles). If you only want to affect the player, try this instead~
Code:
Game_Player.prototype.animationWait = function() {
  return (9 - this.realMoveSpeed()) * 2;
};
It seems to work for me! 😤
It works for me too. Once again, thanks, caethyril!
Super noob question here. Where do I find the code you mentioned, caethyril? I've looked in my game folder in documents and the rpg maker mv folder in steam, but I can't find any code that has game_characterbase. What type of file is it? Where is it located? Thanks.
Super noob question here. Where do I find the code you mentioned, caethyril? I've looked in my game folder in documents and the rpg maker mv folder in steam, but I can't find any code that has game_characterbase. What type of file is it? Where is it located? Thanks.
If you open your project folder (e.g. from the editor's menu: Game > Open Folder) and look in the js folder, you should see a bunch of files with names like rpg_core.js, rpg_managers.js, etc. These are the "core script files" for your project. In this case you're after rpg_objects.js: it contains code pertaining to most of the common high-level objects in a game, including the player, events, actors, enemies, map, etc. It's probably also the easiest one to relate to, since it's the least abstracted from gameplay. 🙂

Note that it's generally inadvisable to edit the core script files; instead you can write "plugins" (separate .js files) containing additional code. Plugins go in the appropriate subfolder and get loaded after the core script files. You can use plugins to replace existing object definitions (simply by defining a new object with the same name, a.k.a. "identifier"), extend them (e.g. by adding new properties to an existing object), or add new ones.

Since I'm not sure how new to coding you are...you can edit .js (JavaScript) files with something like Notepad, but there exist dedicated code editors that can make things much easier. I personally use Visual Studio Code for JavaScript:
Also, Trihan has written a tutorial you might find helpful:
I got this working but it messes up the different walk speed for dashing and not dashing. It makes the animation speed the same across the board... anyone have any solutions?
I got this working but it messes up the different walk speed for dashing and not dashing. It makes the animation speed the same across the board... anyone have any solutions?
It still seems OK for me without any other plugins. Did you test at a lower move speed, so the difference in walk/dash animation rate is clearer? I tested at move speed 2. 👋

Here's an alternative you can try:
JavaScript:
(function(alias) {
  Game_CharacterBase.prototype.animationWait = function() {
    return alias.apply(this, arguments) * 2 / 3;
  };
})(Game_CharacterBase.prototype.animationWait);
I.e. multiply the wait time between map character animation frames by 2/3. Without other plugins, this version should have the same result as the code I posted years ago. It stands a better chance of being compatible with other plugins because it doesn't ignore the method's original result, but I'm not sure how much it would help in this situation if the total override failed. 😴

If that still doesn't solve your problem, you may need a solution written specifically for compatibility with whatever other plugin(s) you are using. Consider starting a new thread in Plugin Requests, and include screenshot(s) of your project's Plugin Manager to show what plugins you're using:
If you aren't using any other plugins then I don't know what the problem might be. In that case you might want to refresh your project's core scripts by following the "Updating your Projects" instructions in this announcement:

This thread was solved years ago and RMMV is no longer receiving core script updates, so...

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-players-animation-frame-rate-but-not-actual-speed.110933/