Animating Movement


The first go at this I had a character moving on the screen on a grid, but it was a little stiff as they teleported from cell to cell. Now I've added a tiny walking animation.

Walking animation

Character animation walking smoothly along grid

Figuring out how to animate a sprite was a little tricky, but once I did, it felt so obvious. For X frames draw sprite 1 and then for Y frames, draw sprite 2 and loop. In things like Godot there's a little animation editor, but I think I like this approach better as I am more at home in the code versus a GUI.

Files

dungeon.zip Play in browser
Dec 22, 2022

Leave a comment

Log in with itch.io to leave a comment.