A helper class to handle icon animations in different menus (party, starter select, etc).
Remarks
How to use: icons is a list of PokemonIcons, to each of which we associate a mode, and register the Y coordinate at rest.
The handler contains two global tweens: one for idle animation (oscillation up and down) and one for a jumping animation.
Calling addOrUpdate on a PokemonIcon (or list of icons) assigns an animation mode:
NONE: no animation, icon does not move.
PASSIVE: idle animation, with a small oscillation amplitude.
ACTIVE: idle animation, with a larger oscillation amplitude.
JUMP: jumping animation (the icons will move up quickly, with a long interval in between).
A helper class to handle icon animations in different menus (party, starter select, etc).
Remarks
How to use:
iconsis a list ofPokemonIcons, to each of which we associate a mode, and register the Y coordinate at rest.The handler contains two global tweens: one for idle animation (oscillation up and down) and one for a jumping animation.
Calling
addOrUpdateon aPokemonIcon(or list of icons) assigns ananimation mode:NONE: no animation, icon does not move.PASSIVE: idle animation, with a small oscillation amplitude.ACTIVE: idle animation, with a larger oscillation amplitude.JUMP: jumping animation (the icons will move up quickly, with a long interval in between).