Py’otrMuhammad Toheed Sahar

Framer: a desktop editor for game sprite animations

A Python and Tkinter desktop tool for viewing and editing game sprite animations: drag sprites to set offsets, play the animation back, and save compact descriptor files.

Client
Own tool
Year
2026
Type
Developer tools

The problem

The game's animations are described in plain-text descriptor files that point at sprite sheets and list every frame's offset and duration, so tuning them means editing numbers without seeing the sprite.

How I built it

I built a Tkinter editor that loads a descriptor file, lists each action's sprites, and lets you change a frame's X and Y offset and duration either by typing or by dragging the sprite on a zoomable canvas (1x to 100x with the mouse wheel). A playback mode previews the animation, there is an open-recent list kept between sessions, and Ctrl+S writes the changes back to the descriptor file.

What got hard

  1. Saving edits back into a hand-written descriptor file without rewriting everything or bloating it with one line per frame.

    Save regenerates only the frame lines of actions whose sprites changed. It merges consecutive sprites that share the same properties into ranges (ascending or descending) and leaves out values that equal the action's defaults.

The result

A documented MIT-licensed tool with keyboard shortcuts, a frame properties panel, playback and cross-platform mouse-wheel zoom on Windows, macOS and Linux.