Skill Tree Activated

The quest to become an indie game developer

#100DaysOfCode#100DaysOfGameDevC#CodingGame DevIllogical BaconTrainingUnity

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
  • 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
setting the Animator, Parameters, and Transitions

Leave a Reply

Your email address will not be published. Required fields are marked *