Hello! I need to slow down walking animation of a player. Decreasing player's movement frequency doesn't help with that (as far as I've noticed, it doesn't change anything at all). From what i found, there is a thread on how to achieve this in VX Ace, but obviously it's not going to work in MZ. Has anyone else tried to do this? Any suggestions on how to achieve this?
MZ How can I slow down the player's stepping animation?
RPG Maker MZ Supportthe frequency is how fast is animated for walking.
stepping animation is different and I had the same problem
for MV.
[here] is the solution for it.
if you have some knowledge in JS, find them in MZ core files,
see if they match or see how you can change it to make it work for you.
this was in combination of shaz stepping animation, not sure if there is
an MZ version of it, but it should do the trick if you an figure it out ^^
stepping animation is different and I had the same problem
for MV.
[here] is the solution for it.
if you have some knowledge in JS, find them in MZ core files,
see if they match or see how you can change it to make it work for you.
this was in combination of shaz stepping animation, not sure if there is
an MZ version of it, but it should do the trick if you an figure it out ^^
The stepping speed (animation wait) is dependent on the movement speed, namely:
So if your speed is 4, the number of frames between each stepping animation would be 15 when idle (so provided stepping is set to ON) and (effectively) 10 if moving. If you wish to slow this down for just the player, you could overwrite the animationWait as follows, so that the number of frames between each stepping animation will be 21 and 14, respectively:
(9 - this.realMoveSpeed()) * 3So if your speed is 4, the number of frames between each stepping animation would be 15 when idle (so provided stepping is set to ON) and (effectively) 10 if moving. If you wish to slow this down for just the player, you could overwrite the animationWait as follows, so that the number of frames between each stepping animation will be 21 and 14, respectively:
JavaScript:
Game_Player.prototype.animationWait = function() {
//return (9 - this.realMoveSpeed()) * 3;
return (11 - this.realMoveSpeed()) * 3;
};
Hello! I tried this script, it did work! Thank you! I just have a few questions, if you don't mind?
Is it possible to make those changes separately for walking animation and running animation, as well as make it apply for other events?
If you want it to apply to all characters (players and events alike), you just change it to overwrite the same function for Game_CharacterBase instead:
If you want the default behavior when dashing, you could do something like:
JavaScript:
Game_CharacterBase.prototype.animationWait = function() {
//return (9 - this.realMoveSpeed()) * 3;
return (11 - this.realMoveSpeed()) * 3;
};
If you want the default behavior when dashing, you could do something like:
JavaScript:
Game_CharacterBase.prototype.animationWait = function() {
if (this.isDashing()) {
return (9 - this.realMoveSpeed()) * 3;
} else {
return (11 - this.realMoveSpeed()) * 3;
}
};
Sorry for the obvious question, I am bad at extracting the bits of script I need; what would I cut and put into the movement route to make just one event step slower?
So just to be clear, the above examples should be implemented as plugins and not as scripts. If you want specific events to behave differently it is probably better to do it through note tags, for example the below will read a notetag of the format <animWait:xx>:
@ap9lsyn If the issues has been solved, kindly use the report button to report the thread as solved!
JavaScript:
/*:
* @target MZ
* @plugindesc Causes slower walkspeed while maintaning animation wait while on stairs
* @author Canned_Dinosaur/Werzaque
* @url https://forums.rpgmakerweb.com/index.php?threads/177745/
* @help Free to use and/or modify for any project, no credit required.
*/
void (() => {
'use strict';
const CnD_Game_Event_animationWait = Game_Event.prototype.animationWait;
Game_Event.prototype.animationWait = function() {
const animWait = Number(this.event().meta["animWait"]);
if (animWait) {
return animWait;
}
return CnD_Game_Event_animationWait.apply(this, arguments);
};
})();
@ap9lsyn If the issues has been solved, kindly use the report button to report the thread as solved!
Hello! Yes, this is what i was looking for! Sorry for delayed response.
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/how-can-i-slow-down-the-players-stepping-animation.177745/