CREATECH NORTH: AI LEAP
22

Game development

Animate a character from a sprite sheet

Create a SpriteFrames resource on AnimatedSprite2D, select the frames to import and preview the animation. Godot provides example assets to follow along.

Outcome
A previewable 2D animation
Time
Self-paced
Level
Starter

WORKFLOW BRIEF

Based on an official walkthrough from Godot documentation. Image credited to the publisher.

BEFORE YOU BEGIN

Set up the work.

Suggested toolkit

  • Godot documentation

You will make

  • SpriteFrames animation

Files and source links

STEP BY STEP

Run the workflow.

Work in sequence and keep each intermediate artifact. Review the result at every stage before spending time on the next one.

  1. 01

    Import the example sheet

    Download the public-domain frog PNG from Files and source links. Copy it into your Godot project, for example at res://art/frog.png. Wait for the FileSystem dock to show the imported texture.

    • The example contains four columns and two rows.
    Public-domain frog sprite sheet from the Godot tutorial. Count four columns and two rows before slicing it.
    Public-domain frog sprite sheet from the Godot tutorial. Count four columns and two rows before slicing it.
  2. 02

    Create the animated node

    Add an AnimatedSprite2D to the scene. In the Inspector, create a SpriteFrames resource and open it. Rename the default animation to frog_cycle, or create a new animation with that name.

    • Save the scene before importing frames so you have a clean starting point.
  3. 03

    Slice the sprite sheet

    In the SpriteFrames panel, select Add frames from a Sprite Sheet and open the frog PNG. Set the horizontal count to four and vertical count to two. Verify every cell encloses one complete drawing.

    • If the grid cuts through a pose, recheck the counts and ensure you selected the original sheet.
    Godot’s Add frames from a Sprite Sheet control. Image: Godot documentation.
    Godot’s Add frames from a Sprite Sheet control. Image: Godot documentation.
  4. 04

    Choose frames in order

    Click frames in the order you want them to play. Use the grid preview to follow the motion and check the order shown in the frames list. Add the selection to frog_cycle.

    • Step through frames individually to catch duplicate or reversed poses.
  5. 05

    Set speed and looping

    Enable looping for the cycle and start with 8 FPS. Preview it in the SpriteFrames panel. Adjust speed by a small amount and compare at the scale you expect in the game.

    • Look at the frog’s contact point. A jump on each repeat often points to frame alignment.
  6. 06

    Play it in the scene

    Choose frog_cycle for autoplay, or call play with that animation’s name from your character script. Run the current scene and check the result in-game. Keep collision shape setup separate from the sprite frames.

    • The animation should play in the running scene, not only in the resource preview.
  7. 07

    Save an asset handoff

    Keep the PNG, scene and resource together. Note the grid, frame order, playback speed, origin and asset credit in the project. Reopen the scene to check all dependencies still resolve.

    • A second person should be able to find and reuse the animation from the project files.

QUALITY GATE

Before you call it finished

01The output matches the stated outcome.

02Sources, settings and intermediate files are saved.

03A person has reviewed the result and edge cases.

04The next person can repeat the process.