2017-12-12 04:44:29 +00:00
# Pic Animations
2019-03-11 03:00:01 +00:00
Defined in [macros/scripts/gfx_anims.asm ](https://github.com/pret/pokecrystal/blob/master/macros/scripts/gfx_anims.asm ).
2017-12-15 00:04:44 +00:00
2017-12-12 04:44:29 +00:00
Pic animations are assembled in 3 parts:
- Top-level animations:
2018-01-17 18:58:50 +00:00
- < code > frame < i > N</ i > , < i > duration</ i ></ code > : Frame #0 is the original pic (no change)
- < code > setrepeat < i > N</ i ></ code > : Sets the number of times to repeat
- < code > dorepeat < i > I</ i ></ code > : Repeats from command #< i > I</ i > (starting from 0)
2017-12-12 04:44:29 +00:00
- `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:
2019-03-11 03:00:01 +00:00
- [gfx/pokemon/anims.asm ](https://github.com/pret/pokecrystal/blob/master/gfx/pokemon/anims.asm ):
2017-12-12 04:44:29 +00:00
Main animations (played everywhere)
2019-03-11 03:00:01 +00:00
- [gfx/pokemon/idles.asm ](https://github.com/pret/pokecrystal/blob/master/gfx/pokemon/idles.asm ):
2018-05-09 16:10:50 +00:00
Idle animations, appended to the main animation.
2017-12-12 04:44:29 +00:00
Used in the status screen (blinking, tail wags etc.)
2019-03-11 03:00:01 +00:00
- [gfx/pokemon/unown_anims.asm ](https://github.com/pret/pokecrystal/blob/master/gfx/pokemon/unown_anims.asm ) and [gfx/pokemon/unown_idles.asm ](https://github.com/pret/pokecrystal/blob/master/gfx/pokemon/unown_idles.asm ):
2017-12-12 04:44:29 +00:00
Unown has its own animation data despite having an entry in the main tables.