I made a full 12 frames of animation for these nerve cells, but only 3 of the frames show. The 3 frames get you the gist, but I would like for the full animation I made to be shown. How do I set up the event so that the full animation shows? I do have plugins to account for extra frames, I don't like using it much because it is a pain in the ass to set up the sprite sheets for it usually. Attached below is an in-game gif, the sprite sheet, how I have the event set up, and a gif of what it is supposed to look like. Thank you in advance.
How do I get a multi-frame animation to work properly?
RPG Maker MV SupportJust to clear up some terminology, you're talking about a character sheet. Animations are edited in the Animations tab of the editor, and have their own spritesheet format.
So the three cels going across each row are for the character walking in that direction. If you want to see those, you need to make the event walk, then change which direction they're facing to change which row is being displayed.
You'd check the Stepping box in the event options, which will make it walk in place, then adjust your timing with Waits in the move route before changing the direction.
So the three cels going across each row are for the character walking in that direction. If you want to see those, you need to make the event walk, then change which direction they're facing to change which row is being displayed.
You'd check the Stepping box in the event options, which will make it walk in place, then adjust your timing with Waits in the move route before changing the direction.
How do I make it walk in place?
What I would personally recommend though is to arrange your sprite sheet so that the animation goes ↓↑↓, like so:
Then you can use a move route like this.
◆Set Movement Route:This Event (Wait): :◇Direction Fix OFF: :◇Script:this._originalPattern = 0; this.resetPattern();: :◇Turn Down: :◇Wait:3 frames: :◇Turn Left: :◇Wait:3 frames: :◇Turn Right: :◇Wait:3 frames: :◇Turn Up: :◇Wait:3 frames: :◇Script:this._originalPattern = 1; this.resetPattern();: :◇Wait:3 frames: :◇Turn Right: :◇Wait:3 frames: :◇Turn Left: :◇Wait:3 frames: :◇Turn Down: :◇Wait:3 frames: :◇Script:this._originalPattern = 2; this.resetPattern();: :◇Wait:3 frames: :◇Turn Left: :◇Wait:3 frames: :◇Turn Right: :◇Wait:3 frames: :◇Turn Up: :◇Wait:3 framesEDIT: added some move route commands so that it can loop.
I set it up like that, but it still moves
1. You're using MOVE instead of TURN, so yes this will cause your sprite to move around.
2. I edited my post afterwards with a more comprehensive guide on how to do this consistently, you may want to try it.
2. I edited my post afterwards with a more comprehensive guide on how to do this consistently, you may want to try it.
Or you can merge all the moves in a line of script.
=============================
Wait:10
=============================
Script: var p=this._pattern+1,d=this._direction-2;p%=3;if(!p){d+=2;d%=8;};d+=2;this._originalPattern=p;this.resetPattern();this.setDirection(d);
=============================
Pattern: 0,1,2,0,1,2,....
Direction:2,4,6,8,2,4,6,8,....
=============================
Wait:10
=============================
Script: var p=this._pattern+1,d=this._direction-2;p%=3;if(!p){d+=2;d%=8;};d+=2;this._originalPattern=p;this.resetPattern();this.setDirection(d);
=============================
Pattern: 0,1,2,0,1,2,....
Direction:2,4,6,8,2,4,6,8,....
This is very close to working, but seems to still have some issues
Please share a screenshot of the entire event as it is very hard to troubleshoot otherwise.
Thanks! Could you check off "stepping" and see if that helps? As long as that is checked, it will try to ping-pong between the three frames aligned horizontally. Also, no need for parallel event since the move route will cycle anyway. Change the trigger to "Action Button" instead.
It worked! Thank you so much! I really appreciate it!
Happy it works! I think you can also change the trigger to "action button" since the custom move route will cycle through it anyway.
Hi again, I tried out your method with another one of my animations (the arm), but there is a slight problem. It doesn't show in this gif all that well, but there is a very noticeable stutter when it loops. I just copied and pasted the event from the nerve, so all of that is the same, and I rearranged the sprite sheet properly. How can I go about fixing this issue?
EDIT: Upon trying another animation and the same problem arising and going back to look at the nerve cells again, I have found that it is a problem with the nerve cells as well. It is literally a millisecond stutter, but again, still very noticeable. How can we remedy this?
EDIT: Upon trying another animation and the same problem arising and going back to look at the nerve cells again, I have found that it is a problem with the nerve cells as well. It is literally a millisecond stutter, but again, still very noticeable. How can we remedy this?
Hmmm… that’s curious… could you set the wait to, say, 60 frames to see where the stutter occurs?
Hi again, it seems like the stutter occurs right after the final frame, so seemingly when it loops
Every move command (e.g. Direction Fix OFF) takes at least 1 frame.
Try changing the last "Wait 3 frames" command to "Wait 2 frames"?
Try changing the last "Wait 3 frames" command to "Wait 2 frames"?
Tried it, but its the same thing still
OK, I have another suggestion, same basic idea. The start of the move route has this:
But that's 2 move commands, so it will take 2 frames to complete. As a workaround, you could try replacing those 2 lines with a single Script command:
: :◇Script:this._originalPattern = 0; this.resetPattern();
: :◇Turn DownBut that's 2 move commands, so it will take 2 frames to complete. As a workaround, you could try replacing those 2 lines with a single Script command:
: :◇Script:this.setDirection(2); this._originalPattern = 0; this.resetPattern();Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-a-multi-frame-animation-to-work-properly.170022/