Leave a Reply

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

Notify of
avatar

MrDesignerPanda
Guest
MrDesignerPanda
11 months 4 days ago

oncollisionenter2d no work, please help me.

Leonardo Ribeiro
Guest
Leonardo Ribeiro
11 months 28 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
11 months 29 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
11 months 20 days ago

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

Gabriel Barbosa
Guest
Gabriel Barbosa
11 months 24 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
1 year 4 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
1 year 7 days ago

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

Unity
Guest
Unity
1 year 5 days ago

Click the mouse.

Marko Majstorovic
Guest
Marko Majstorovic
1 year 14 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
1 year 13 days ago

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

Unity
Guest
Unity
1 year 14 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
1 year 24 days ago

Shouldn't rb2d.AddForce be called from FixedUpdate?

Unity
Guest
Unity
1 year 14 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
1 year 23 days ago

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

wpDiscuz