- Home /
how to implement character mechanics like flappy bird
Right now I have a script that allows the bird to jump up and down. But I have also added an animation that allows the bird's wings to flap up and down by using sprites. But when I allow the animation for the wings to move up and down, my script for making the bird jump no longer works. So basically, I would like to know how to make it so that the animation for the wings work while I am still able to control the bird (by making him jump). All help is appreciated! Thanks!!
As a guess, you want to make the bird a child of an empty game object. $$anonymous$$ove the empty game object for moving. Animate the child.
How are you applying the movement? through forces or by setting the position every frame?
Answer by ducklin · Dec 06, 2014 at 10:25 AM
I found an amazing flappy brird clone source on github and it has complete solution. And i sure you will find your solution in this :)
https://github.com/unity3diy/Flappy-Bird-Clone
Your answer
Follow this Question
Related Questions
Lane moving vehicle 1 Answer
Animator switching between floats 1 Answer
How to get blended animations into the scene 0 Answers
Animations and Rotation of character 2 Answers
I want to sync my animations with eachother via Animator.SetTrigger 0 Answers