Frames per Walk Cycle at Various Speeds [SOLVED]

Status
Not open for further replies.

stevenblanc

Veteran
Veteran
Joined
Apr 11, 2020
Messages
53
Reaction score
25
First Language
English
Primarily Uses
RMMV
Hi folks,

I'm working on a battler mini-game and I'm having a little trouble with the animation. Not knowing JS I've done reasonably well getting the whole mini game to run off of a couple events. However, I'm having trouble getting the animations to run smoothly.

Effectively I've set each attack and defense animation to the three frames of a walk animation. In order to play the animation I am turning the event to the relevant direction with stepping on and waiting 30 frames.

Obviously this is a guesstimate. I've been searching but I can't quite figure out home many frames are required for one full animation at the various event speeds. Does anyone know these numbers or point me to a resource that lists it out.

For example:

1: 8x Slower: 00 Frames/Cycle
2: 4x Slower: 00 Frames/Cycle
3: 2x Slower: 00 Frames/Cycle
etc...

I hope this is clear and thanks in advance for the help!

Cheers,

Steven
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,219
Reaction score
1,628
First Language
EN
Primarily Uses
RMMZ
I believe this is the default delay between frames for map characters:
JavaScript:
(9 - this.realMoveSpeed()) * 3
realMoveSpeed gets the character's move speed, with an extra +1 if they're dashing (by default only the player can dash).

So delay per animation frame at speed 4 ("Normal", default player walk speed) is (9 - 4) * 3, i.e. 15 frames. This would make a full cycle (default 3 anim frames) 45 frames. Similarly for other speeds~ :kaopride:
 

stevenblanc

Veteran
Veteran
Joined
Apr 11, 2020
Messages
53
Reaction score
25
First Language
English
Primarily Uses
RMMV
Awesome thanks @caethyril!

So for reference (and in case anyone else wants a quick table and stumbles across this), we are looking at:
1: 8x Slower: 24 Frames (Ticks)/Animation Frame
2: 4x Slower: 21 Frames (Ticks)/Animation Frame
3: 2x Slower: 18 Frames (Ticks)/Animation Frame
4: Normal: 15 Frames (Ticks)/Animation Frame
5: 2x Faster: 12 Frames (Ticks)/Animation Frame
6: 4x Faster: 9 Frames (Ticks)/Animation Frame

1: 8x Slower: 72 Frames/Normal Walk Cycle
2: 4x Slower: 63 Frames/Normal Walk Cycle
3: 2x Slower: 54 Frames/Normal Walk Cycle
4: Normal: 45 Frames/Normal Walk Cycle
5: 2x Faster: 36 Frames/Normal Walk Cycle
6: 4x Faster: 27 Frames/Normal Walk Cycle

This is magical and explains a couple things I was having trouble with!

For future knowledge the +1 for dashing goes where:
(9 - this.realMoveSpeed() + 1) * 3; or
((9 - this.realMoveSpeed()) * 3) + 1?
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,010
Reaction score
5,317
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Sheila Nagase

same caption as before. :3
"Be as honest as you possibly can as often as you can. It makes your lies much easier to believe."
Each new game means new ways to survive and you need to adapt when you have 10 different stores with lots of items for your adventure
It took really long to gather the 4 siblings to make this pictur- where did the fourth one go!?

Forum statistics

Threads
107,373
Messages
1,029,184
Members
139,468
Latest member
Frostlord_Icy
Top