Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Beginner dev making a defense game: character animations were way harder than I thought

Getting the characters to move in Godot took way more tries than I expected, so here's how it went.

My first sprites only had about 38 frames per character. Idle was 2 frames lol.

Then I tried an open-source animation template and had ChatGPT (through Codex) repaint just the look while keeping the poses.

What I do now: I turn each chibi drawing into a short video with Kling. I use the same drawing as the first and last frame, so the motion ends right where it started. For running I made one run video and put it on every character.

Then from the video:
- ffmpeg pulls out every 2nd frame
- OpenCV + NumPy take out the green background
- Pillow shrinks it and cuts the colors so it looks like pixel art

Then I got greedy with frames:
- 15-20 frames per animation
- about 240 frames per character
- one character's sheet was eating about 127 MB~

Cutting out the empty space and packing the frames got it down to about a third. Godot just draws each frame at its saved spot.

I'll probably go down to 8-12 frames per animation next! ^^;