2017-12-11 20:44:29 -08:00
|
|
|
# Pic Animations
|
|
|
|
|
2017-12-26 15:45:04 -08:00
|
|
|
Defined in [macros/scripts/gfx_anims.asm](/macros/scripts/gfx_anims.asm).
|
2017-12-14 16:04:44 -08:00
|
|
|
|
2017-12-11 20:44:29 -08:00
|
|
|
Pic animations are assembled in 3 parts:
|
|
|
|
|
|
|
|
- Top-level animations:
|
|
|
|
- `frame` *#*, *duration*: Frame 0 is the original pic (no change)
|
|
|
|
- `setrepeat` *#*: Sets the number of times to repeat
|
|
|
|
- `dorepeat` *#*: Repeats from command *#* (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:
|
|
|
|
|
2017-12-26 15:45:04 -08:00
|
|
|
- [gfx/pokemon/anims.asm](/gfx/pokemon/anims.asm):
|
2017-12-11 20:44:29 -08:00
|
|
|
Main animations (played everywhere)
|
|
|
|
|
2017-12-26 15:45:04 -08:00
|
|
|
- [gfx/pokemon/extras.asm](/gfx/pokemon/extras.asm):
|
2017-12-11 20:44:29 -08:00
|
|
|
Extra animations, appended to the main animation.
|
|
|
|
Used in the status screen (blinking, tail wags etc.)
|
|
|
|
|
2017-12-26 15:45:04 -08:00
|
|
|
- [gfx/pokemon/unown_anims.asm](/gfx/pokemon/unown_anims.asm) and [gfx/pokemon/unown_extras.asm](/gfx/pokemon/unown_extras.asm):
|
2017-12-11 20:44:29 -08:00
|
|
|
Unown has its own animation data despite having an entry in the main tables.
|