+ -

13 - Character Animations

RPG Maker does not support your character running action animations and limits the number of frames to 3. This tutorial will guide you on how to break that limit. You need to enable the Hendrix RPG Maker Animation Solution plugin for this feature to work.

 Slime xanh đang cày ruộng, phong cách vui nhộn

How to increase the number of frames

We have this 6‑frame spritesheet. To let the plugin recognize it as a 6‑frame image, name the file:

$filename_f6.png

How to run animation frame‑by‑frame


Call the command Set Movement Route and change the character’s graphic to the 6‑frame image. Next, run the script:

playFrames(1, 6, 3)

Here, 1 is the starting frame, 6 is the last frame you want to play to, and 3 is the speed measured in frame units (similar to the Wait command). With that, you'll see your character swinging his sword smoothly.

Additionally, you can use the script:

toFrame(frame number)

This will change the current frame to the one you specify.

English
Japanese