pokecrystal/docs/pic_animations.md
2018-01-17 13:58:50 -05:00

1.1 KiB

Pic Animations

Defined in macros/scripts/gfx_anims.asm.

Pic animations are assembled in 3 parts:

  • Top-level animations:

    • frame N, duration: Frame #0 is the original pic (no change)
    • setrepeat N: Sets the number of times to repeat
    • dorepeat I: Repeats from command #I (starting from 0)
    • end
  • Bitmasks: Layered over the pic to designate affected tiles

  • Frame definitions: first byte is the bitmask used for this frame
    following bytes are tile ids mapped to each bit in the mask

Animation data is in these files: