Flappy Pig – Animation States
Day 074 #100DaysOfCode
Day 038 #100DaysOfGameDev
- create Idle animation clip
- create Flap animation clip
- create KO animation clip
- configure Animator
- create Flap trigger parameter
- create KO trigger parameter
- make animation transitions
- Idle to KO
- no Exit Time
- condition set to KO
- Idle to Flap
- no Exit Time
- condition set to Flap
- Flap back to Idle
- has Exit Time
- Idle to KO
- modify FlappyPig script
- add Animator variable & get component data
- tell Animator to show Flap frame upon clicking
- tell Animator to show KO frame upon collision