In a sample game I created (where I am just kinda messing around with features) I have an autorun event set so that when the game starts up, the player character's movement speed is set to move 2x faster. Unfortunately this also causes the stepping animation to move 2x as fast. Is there a way I can set it to where the stepping animation speed is different from the movement speed?
Movement speed increase causing faster stepping animation?
RPG Maker MV SupportYou can mess with the animationWait function.
Game_CharacterBase.prototype.animationWait = function() {
return (9 - this.realMoveSpeed()) * 3;
};
you can return some formula, or just a flat number like:
return 15;
w.e. value it gets, is the time in frames, it waits before changing sprite frame.
save the editing one into some js file and add it in the plugin manager.
Game_CharacterBase.prototype.animationWait = function() {
return (9 - this.realMoveSpeed()) * 3;
};
you can return some formula, or just a flat number like:
return 15;
w.e. value it gets, is the time in frames, it waits before changing sprite frame.
save the editing one into some js file and add it in the plugin manager.
I think I did something wrong because it didn't work. Here is the JS file I created.
View attachment stepping animation speed control.js
View attachment stepping animation speed control.js
Oh no, you want to edit the return in snippet, not add it below. Something like:
Code:
Game_CharacterBase.prototype.animationWait = function() {
return 15;
};
Ah OK, that did the trick. Now just a couple more questions before I ask for the topic to be closed.
what exactly does
Return 15;
do anyway? What would happen if I were to make the number higher or lower?
what exactly does
Return 15;
do anyway? What would happen if I were to make the number higher or lower?
I mentioned it in my first reply
So if you put 15, the sprite will wait 15 frames before going to the next index / frame / step. If you put 10, it will wait 10 frames before going to the next index / frame / step.
But this is not always true, but when you are moving or have stepping animation set to true, the wait is decreased by 1.5x by another MV code.
So if you put 15, the sprite will wait 15 frames before going to the next index / frame / step. If you put 10, it will wait 10 frames before going to the next index / frame / step.
But this is not always true, but when you are moving or have stepping animation set to true, the wait is decreased by 1.5x by another MV code.
Is this the case even with Shaz's Actor Step Animation plugin?
Also how do I set the JS file so the number I can change is a parameter I can edit via the plugin manager?
https://gist.github.com/quasixi/153f7509cd3c76cf6d3e
Save it as "AnimationWait.js"
Save it as "AnimationWait.js"
Thanks for going through the trouble of doing it for me.
It is OK with you if I use it in my commercial game and/or share it with others?
Yes, that's completely fine.
Closed.
Original thread: https://forums.rpgmakerweb.com/threads/movement-speed-increase-causing-faster-stepping-animation.55963/