ZUO Motion

One image → part slicing → motion preview → GML download

YunJuho0010

1 Upload Image

Character Sheet

Square 3×3 sheet recommended · click/drop

Weapon Image

Optional · click/drop

2 Preview

Speed

3 Usage

Setup: import the sheet PNG as a sprite with a single frame → create a script asset and paste the downloaded scr_zuo_motion.gml contents. Then, in your character object's 3 events:

// ① Create — register the character once (weapon is optional)
zuo_motion_create("hero", spr_mysheet, spr_sword);
//                 "hero"      = any name you pick for this character
//                 spr_mysheet = the imported 3x3 sheet sprite
//                 spr_sword   = weapon image (origin = center). Optional

// ② Step — switch motions whenever you want
if (keyboard_check_pressed(vk_space)) zuo_motion_change("hero", "attack1");
if (hspeed != 0)                      zuo_motion_change("hero", "walk");
zuo_motion_change("hero", "run", 1.5);   // 3rd argument = playback speed for that motion (1.5x)

// ③ Draw — draw the animation
zuo_motion_draw("hero", x, y, 1, image_xscale, image_yscale, image_alpha, c_white);