I have an animation that takes entire charset, so i have to go like - step, step, step, direction change, step step step, direction change, and so on. The only problem is that i do not know command that would make character do exact amount of steps while remaining in place. So i need to switch walking animation on, put wait for certain amount of frames, and switch it off. The question is - how much the pause should be? Of course i can just input random numbers and try what looks good, but i kinda want it to be percise and consistent.
How much frames are each step?
RPG Maker MV SupportA character's pattern ("stepping frame") updates at a rate determined by their
E.g. at speed 4 ("Normal") there would be (9 - 4) * 3 = 15 frames between pattern updates.
animationWait method. By default this is:
JavaScript:
Game_CharacterBase.prototype.animationWait = function() {
return (9 - this.realMoveSpeed()) * 3;
};
Thank you. So i need to put 45 frames pause between each turn for the whole 3 steps to play, right?
Is there a reason why animations still could look... laggy, despite right timing?
Yes, I think so: 3 steps at speed 4. 👋
Perhaps. Here are a couple of ideas:
- Move routes process up to 1 command per frame, so you need to factor that in when considering wait time. E.g. this sequence should last a total of 45 frames:
- Stepping ON
- Wait: 43 frames
- Stepping OFF
- If you're doing this in an event's autonomous move route, I recommend setting its Move Frequency to 5 (Highest). That will eliminate its "stop count", i.e. delay between successive move commands. (This does not apply to routes assigned by Set Movement Route.)
Alternatively you could check out this tutorial:
Tutorial-Blog - Animations with More Frames
Written by: @Avery Read the Tutorial Here
forums.rpgmakerweb.com
Thank you, i didn't know you can format for a single row. Will read it all tomorrow and perhaps try to do it this way and see if it helps me.
Tried your script, it gives an error - "This_character is not a function". Perhaps i am putting it at wrong place?
Tried that, does not help... This is the charset. For some reason it always getting stuck on part when microphone is thrown, it even like returns to the middle of the head and stays there for a second. Rest of the animation works well. Since it works well on preview given to me by the author, the problem is 100% not with animation itself but with how i handle it. So i must be doing something wrong.
If anything my current event looks like that, and you can see where i tried to use your script.
OK, so stepping animation repeats the sequence "left, middle, right, middle"; i.e. pattern 0, 1, 2, 1. I didn't notice this earlier, but I think you've been assuming it repeats 0, 1, 2 instead?
Some options to work around this:
I.e. "0, 1, 2; next row; etc ; next block; etc". I don't know if that's the sort of sequence you want, though. 😴
Note: for my test I selected the image with down-facing pattern 0 (i.e. left step) for the event. The pattern selected for an event's image is used as its resting/reset pattern.
Some options to work around this:
- Rework your animation to follow the 0, 1, 2, 1 sequence (and adjust wait time);
- Rework your spritesheet and follow the approach described in Avery's tutorial;
- Replace "Face Up" etc with a script call to also reset the pattern.
◆Set Movement Route:This Event (Wait)
: :◇Stepping Animation ON
: :◇Wait:42 frames
◆Set Movement Route:This Event (Repeat)
: :◇Script:this.setDirection(4); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setDirection(6); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setDirection(8); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setImage("ZoeSing", 1); this.setDirection(2); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setDirection(4); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setDirection(6); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setDirection(8); this.resetPattern();
: :◇Wait:44 frames
: :◇Script:this.setImage("ZoeSing", 0); this.setDirection(2); this.resetPattern();
: :◇Wait:44 framesI.e. "0, 1, 2; next row; etc ; next block; etc". I don't know if that's the sort of sequence you want, though. 😴
Note: for my test I selected the image with down-facing pattern 0 (i.e. left step) for the event. The pattern selected for an event's image is used as its resting/reset pattern.
Original thread: https://forums.rpgmakerweb.com/threads/how-much-frames-are-each-step.176904/