Leave a Reply

14 Comments on "Flappy Bird Style – The Bird Script [3/10] Live 2016/12/19"

Notify of
avatar

MrDesignerPanda
Guest
MrDesignerPanda
3 months 16 days ago

oncollisionenter2d no work, please help me.

Leonardo Ribeiro
Guest
Leonardo Ribeiro
4 months 10 days ago

I'm starting on Unity and I have to comment this. When I clicked and the bird jumped, it was magical hahaha. Thank you.

Nina Espiritu
Guest
Nina Espiritu
4 months 10 days ago

i got an error message. it says that "`UnityEngine.Rigidbody2D' does not contain a definition for `Addforce'." thank goodness i found a solution on forums about this problem.for those who had errors using unity 5.1, try using this coderb2d.GetComponent<Rigidbody>().AddForce(new Vector2 (9, upForce));thumbs up for this video 🙂

Brian Seeley
Guest
Brian Seeley
4 months 1 day ago

I was going to say that the problem was caps. Should be AddForce(). Camel case bites every time.

Gabriel Barbosa
Guest
Gabriel Barbosa
4 months 5 days ago

In the Start function you have to write: "rb2d = GetComponent<Rigidbody2D>();" to reference the rigidbody2d component. Then in the Update function you don't need to get the reference, just write: "rb2d.AddForce(new Vector2(0, upforce));"

sourav vashisht
Guest
sourav vashisht
4 months 16 days ago

hey there i am getting a big problem in mono develop while writing the script it did't accept Rigidbody2D and don't accept (Input.GetMouseButtonDown(0)) please give me some solution..

cracksnack snap
Guest
cracksnack snap
4 months 19 days ago

hey what key do i press to make the bird flap???

Unity
Guest
Unity
4 months 17 days ago

Click the mouse.

Marko Majstorovic
Guest
Marko Majstorovic
4 months 26 days ago

upForce = 200f;What does it stand for ? I changed the value a lot of times and it doesnt do anything. Can someone give me an explanation. Thank you.

Marko Majstorovic
Guest
Marko Majstorovic
4 months 25 days ago

Unity its ok i figured it out forgot to delete the comment.

Unity
Guest
Unity
4 months 26 days ago

Marko Majstorovic Please use the Unity Forums to ask these questions. There is a dedicated thread in the teaching section.

Skull Trap
Guest
Skull Trap
5 months 5 days ago

Shouldn't rb2d.AddForce be called from FixedUpdate?

Unity
Guest
Unity
4 months 26 days ago

Skull Trap Please use the Unity Forums to ask these questions. There is a dedicated thread in the teaching section.

AtteMetal
Guest
AtteMetal
5 months 5 days ago

Well it doesn't really matter because the add force is only called once (when the mouse is pressed).

wpDiscuz