Sprite (Pico-8)

A small or elusive supernatural being; an elf or pixie. - noun

For collision looks here

Online editor: draw pico-8 sprites! - up to 32x32

Sprite Animation

Basic

Assuming you have GFX 8x8 sprite available from 1 to 5, code looks like this (from How to Animate a Sprite!):

sprite = 1
x = 64
y = 64
timing = 0.25

function _draw()
    cls()
    spr(sprite, x, y)
end

function _update()
    --animate
    sprite += timing
    if sprite >= 5 then sprite = 1 end
end

anim()

Obviously code above can be made generic (see anim()), and complefixied when dealing with non-symetrical actor (multi 8x8 sprite) (see Advanced animation).

see also

External tools

  • export
    • export spritesheet.png
    • import spritesheet.png
  • respriter - move sprites around and have the map updated to point to the new location of your sprites ( remove the 2 square brackets on tab 5, line 375. to fix bugs on latest version)

Sprite Rotation

Animating Big Sprite

Generating Sprite

Tips

Collision

For collision looks here

Stacked Sprites

Sprite Composer

Create animation from sprite composition

caption

see also

Written on October 25, 2023, Last update on November 23, 2023
pico8 sprite pixelart online