Тёмный

How to make Flappy Bird in Unity (Complete Tutorial) 🐤💨 

Zigurous
Подписаться 23 тыс.
Просмотров 245 тыс.
50% 1

Learn to make the mobile arcade game Flappy Bird in Unity. Flappy Bird is a mobile game developed by Vietnamese video game artist and programmer Dong Nguyen. The game is an infinite side-scroller where the player controls a bird, attempting to fly between columns of green pipes without hitting them.
0:00 - Intro
0:30 - Project Creation
1:25 - Importing Sprites
3:07 - Scene Setup
6:32 - Input & Movement
12:56 - Sprite Animation
17:12 - Background Parallax
26:49 - Pipes: Prefab
31:06 - Pipes: Spawning
36:36 - Pipes: Movement
41:43 - Game State & Scoring
48:13 - UI Design
54:55 - Menu Interactions
1:03:17 - Fixes
1:06:03 - Outro
🖥️ Source code and assets: github.com/zigurous/unity-fla...
👍 Subscribe for more Unity tutorials: ru-vid.com?sub...
💬 Join our Discord community: / discord
👑 Become a Patreon supporter: / zigurous
❤️ Support my work: www.paypal.com/donate?hosted_...
⭐ Download my Unity assets: zigurous.com/assets
········································­­·······································­·­····
► Learn more about my work: zigurous.com
► Follow for news and updates: / zigurous
#unity #unitytutorial #gamedev #unity3d #unity2d #gamedevelopment #indiegame #indiedev #madewithunity

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 379   
@Zigurous
@Zigurous 2 года назад
Visit the GitHub page for the most up to date source code: github.com/zigurous/unity-flappy-bird-tutorial View the FAQ for answers to common questions: github.com/zigurous/unity-flappy-bird-tutorial/wiki
@BERRE599
@BERRE599 11 месяцев назад
Hello Adam, I am a new follower, I speak Arabic, and your name is Arabic. Do you speak Arabic?
@mmustahsanraza
@mmustahsanraza 10 месяцев назад
I've done exactly as you did but my score is not adding up colliders are not working and my game is not going over. I'm not colliding with ground and pipes I'm using Unity 2022 can you please help me?
@kiddbrawlic
@kiddbrawlic 5 месяцев назад
So I am using 2022 unity and at the end the click for the button is different. its asking for a target assembly and a method name and i dont know what to do.
@wer...-.....-..-....
@wer...-.....-..-.... Месяц назад
can u give a version of pc
@north3269
@north3269 2 года назад
I absolutely love your videos! I'm actually new to coding and stuff and I'm outta plans. Your tutorial is so easy and simple to understand while these thing usually hurt my brains. There are only a FEW RU-vidrs who can actually explain it simple and stuff and you're included! You're actually too Underrated.
@treroldan8707
@treroldan8707 2 года назад
This is an amazing tutorial, love your overall vibe! I am brand new to both coding and game creation and this was so easy to follow. I love how you take the time to actually describe what each line of code is doing and why. Definitely going to be subscribing and checking out your other content. Thank you so much, and keep making videos!!
@JamesTolias
@JamesTolias Год назад
This tutorial is absolutely incredible! I am a new software engineer with about 1 year of experience and I am getting into Game Development, and this guy uses the best practises, makes a pixel perfect game, and explain everything pretty accurately!
@adityaburadkar9002
@adityaburadkar9002 Год назад
Thank you! if anyone having problem with scoring as a TMP then add 'using TMPro;' and instead of text use 'public TextMeshProUGUI scoreText;' and that should solve the problem.
@LaurenArmiland-yw9vh
@LaurenArmiland-yw9vh 7 месяцев назад
Thank you!!!!
@silverglasss6786
@silverglasss6786 Год назад
Coldn't be more pleased with a tutorial than this! It worked out perfect. The background music created a really good atmosphere as well.
@seemslegittome7726
@seemslegittome7726 2 года назад
Such an underrated channel, I love the wole tutorials since he explained what is the use of the codes and really fixed the problems. I hope you gain more subs and views cause you deserved it. Hoping to learn more about your tutorials.
@panaxio_oficial
@panaxio_oficial 8 месяцев назад
Bro I love you so much, starting with Unity was my new year's resolution, and today (almost at the end of the year) I finally stopped blaming myself for not being consistant with the official courses that I was watching, and your videos have reminded me that definitely the best way to learn is by doing and not just watching boring videos from an official course. THANK YOU SO MUCH!!
@Zigurous
@Zigurous 8 месяцев назад
Thank you so much for your support!
@soular7159
@soular7159 2 года назад
This was the first time I've ever worked with c# and the first 2d game I've made with u you it was such a help to have this tutorial. Thank you so much!
@UchihaAshuke
@UchihaAshuke 2 года назад
Thank you for all your effort. I have started learning unity again after multiple failed attempts earlier. Love your contents. Keep up the good work.
@rafaelpatricio8022
@rafaelpatricio8022 9 месяцев назад
This video helped me a lot to produce a project for school and to learn a lot more about “Unity”, which is why you just gained a follower. Thank you very much.
@DarkMaaastersTubeLoL
@DarkMaaastersTubeLoL 2 года назад
I don't have any patience usually but man I've watched your tutorial fully. Very nice explained and it went smoothly. Keep it up.
@rfernandez83
@rfernandez83 2 года назад
Bought me a mac about a month ago to get in the game app biz. This definitely helped learning how things work, because the unity tutorial like John Lemon doesn't feel like it's explaining very well what it all does compared to how you are doing it. Thanks for the video.
@SierraGuerrero
@SierraGuerrero 2 года назад
Amazing tutorial! Thank you so much for taking the time to create, share, and explain the process.
@sreemayeeghosh
@sreemayeeghosh 6 месяцев назад
Extremely well explained steps! All assets and scripts have been carefully cleaned up, organized and rendered bug free👍🏻👏🏻
@joshfatal
@joshfatal 6 месяцев назад
Thank you so much for making this channel. I'm a nobody hobbyist game developer still trying to learn as much as I can and I felt like there was no hope to getting into this field (no degree, no experience.) Aside from learning a lot from your tutorials (which are very well produced and paced) I'm planning to make most, if not all of the games you've taught on here, and add my own modifications so I can some day put to gather a portfolio website. For Flappy Bird, so far I've added a feature that puts a translucent copy of the next set of pipes on the right side of the screen shortly before they pop into view. I have the game set in 9:16 aspect ratio to mimic a phone, so this feature I feel makes the game a little bit less frustrating (not really, it's still Flappy Bird.) It's a little buggy but it actually works and I'm proud of it. Thank you again for doing this, keep on creating!
@scottbarba9247
@scottbarba9247 6 месяцев назад
These are great!! I'm teaching game design using Unity in AP Computer Science Principles at the high school level and your use of functions, calls, loops and arrays is perfect for meeting AP's criteria!!!
@JoinGaming-ze4vm
@JoinGaming-ze4vm 9 месяцев назад
Regarding the moving background tutorial in this video... this one actually worked compared to many others of there!! Thank you for this video!
@imem007
@imem007 5 месяцев назад
bro i used this tutor , i just 0% on unity skill, try ur tutorial and finally did it and have a priceless emotion bout this project. best regard to u sir, even it take 7 hour nonstop for me to make it hahaha.
@wavesarered9436
@wavesarered9436 2 года назад
The most comprehensive and easy to follow tutorial with good explanations. Awsome work ! I just did the game and I am so happy :D Only complaint i have, please lower the background music volume.
@yazanjordan3103
@yazanjordan3103 2 года назад
i liked the video before i watch it because i trust this channel and i just added it to my future project thank you zigurus
@clericbezoe1644
@clericbezoe1644 9 месяцев назад
I've done it! completely finished the tutorial without a hitch! definitely going to try other tutorial!
@nicklansbury3166
@nicklansbury3166 2 года назад
Greetings from the UK. Thanks for this great lesson. You mentioned in the lesson we could suggest further tutorials. I'd love to see a version of Atari Missile Command using Unity. Keep up the great work.
@rsr9377
@rsr9377 Год назад
Thank you so much for this Zigurous! I just made my first game in Unity and it's great because I'm also a software developer. The tutorial was easy and well explained. Thank you!
@Liforus1
@Liforus1 2 года назад
Oh wow. I did Flappy Bird yesterday all by myself as a first game without tutorials. But your tutorial will be watched from start to end as always 👍
@sd003ds
@sd003ds 2 года назад
Really amazing tutorial. Helped me a lot as I am just starting my game development journey. Thanks a lot for making this!!
@JackJack-tl1nm
@JackJack-tl1nm 2 года назад
Another banger video! As a suggestion for possible future tutorials, I would love to see a tower defense style game such as bloons td :)
@absolubouess932
@absolubouess932 4 месяца назад
My FIRST game ever ! Thank you man , I appreciate it
@ThePraQNome
@ThePraQNome 6 месяцев назад
Great tutorial, working 100% without any bugs in 2024. Thank you.
@CreativeBeginnings-
@CreativeBeginnings- 2 года назад
Great video! Your teaching style is excellent and a perfect pace!
@Opuntiaindica
@Opuntiaindica Месяц назад
Im about halfway through all your tutorials, leaving mario for last. You've really helped me fully understand some concepts, I can only hope you upload a new vid before I'm done with Mario, either way Thank you so much, and I completely understand if you needed a break from youtube, once again thank you.
@juliangubbels5217
@juliangubbels5217 2 года назад
Wake up! Zigurous posted!
@stanislav_5312
@stanislav_5312 2 года назад
Thanks for this tutorial! Really easy to get into with your narration.
@abhilashlr9259
@abhilashlr9259 2 года назад
Great video man, I love your tutorials. Like the other comment said, how about a tower defence next?
@_game_x7847
@_game_x7847 2 года назад
Awesome Work Sir! I actually needed this!! Thank You :D
@mrworldwide9172
@mrworldwide9172 2 года назад
Thanks man i really appreciate what you do I want to be a game developer and your tutorials are extremely helpful
@Kmir-uh2wk
@Kmir-uh2wk Месяц назад
This is an amazing tutorial. Thank you so much. Keep it up.
@Aerionix1
@Aerionix1 Месяц назад
Doubt anyones looking these days but curious why we use time.deltatime for the change to direction using the gravity var and also for updating our position, but not when we change direction earlier with our strength var. Thanks for these man, i dunno if you're still doing this stuff but looks like it helped a lot of folks.
@revox3046
@revox3046 Год назад
Well, gonna leave my sub here. Great job I was totally beginner and you did exactly what I was looking for, some programming with explaination for everything :)
@paolo-hy3iy
@paolo-hy3iy 2 года назад
This is amazing!! It's incredible that you have only 2k subs....
@Brian-nu9rp
@Brian-nu9rp Год назад
This guy is amazing he tought amlost every detail in this game. Thanks dude!
@nemanjasimovic37
@nemanjasimovic37 2 года назад
Thank you very much for this tutorial! Keep up the good work! Cheers!
@fahrezyman
@fahrezyman Год назад
Brother, thank you for the tutorial. You explain the Code really clear. I appreciate
@yecebeci5316
@yecebeci5316 Год назад
Thanks man. That was really for begginners! Do more videos about like this game
@burak7861
@burak7861 2 года назад
This is an amazing tutorial. Thank you so much !
@itsfazzeliv259
@itsfazzeliv259 2 года назад
Thank you, the best tutorial I have found!
@ryuu6531
@ryuu6531 Год назад
This is an amazing tutorial, learnt a lot thanks mate!!! : )
@MrJeepty
@MrJeepty Год назад
This was great. Nice and simple code. I followed the tutorial using Unity 2021.3.16 without any issues.
@drradium1616
@drradium1616 2 года назад
Best tutorials ever. 😀I was thinking maybe centipede next?
@ayushsidam289
@ayushsidam289 2 года назад
Thanks sir for this awesome tutorial. I'm a beginner in game development and this tutorial is really helpful.😇🙏🏻
@spacecow456ify
@spacecow456ify Год назад
Amazing tutorial. I can make my first game thanks to you. I did some update by added background music and bird rotation when falling.
@thaitrinh9642
@thaitrinh9642 2 месяца назад
This guys is insane. thanks for the tutorial
@LeeTaylorTV
@LeeTaylorTV Год назад
Great tutorial. Never made a game in any engine and been wanting to learn for a while and came across your, I'm glad I found this, easy to follow and understand, really did learn a lot, took me around 4 hours as making my own sprites and background. Would love to know how to add add the sound when you click/tap the screen for the bird 🤔
@vanshrana9508
@vanshrana9508 2 года назад
Thanks a lot for the tutorial man Awesome one :)
@Mackenzz
@Mackenzz Месяц назад
Thank you for saving my project
@justsapiens8627
@justsapiens8627 5 месяцев назад
Yeap, I completed and now working perfectly thanks... It was so enjoyable...
@jeffersonguimaraes5500
@jeffersonguimaraes5500 2 года назад
your videos are amazing and help me a lot.Thank you from Brazil !!
@_abrahamxxv_962
@_abrahamxxv_962 2 года назад
Most helpful person on the internet
@Ali-xt2ex
@Ali-xt2ex 2 года назад
Thank you so much...i didn't really understand the coding part much because i don't have experience but still tried and it eorked
@sherminshams9647
@sherminshams9647 2 года назад
I have made frogger with your tutorial. Continue you tutorial, they are awesome 👌 👏 👍 😍 💖.
@lucamaltempo723
@lucamaltempo723 2 года назад
thanks man, this tutorial is amazing
@hasnatasim1609
@hasnatasim1609 Год назад
Amazing! Well explained! Thankyouuu!
@waldojams
@waldojams 2 года назад
Awesome tutorial!
@user-ic1wi4do9z
@user-ic1wi4do9z 4 месяца назад
Did Finish it Today! With the Github Element for the New Text I needed to Create a TextProMesh Font to use it. Also I somehow overlooked the Part where you did add 2DBoxCollider to the Player and was endlessly long struggling to find out why my bird aint colliding. Me as a Newbie didn't understand that RigidBody2D not count as a Collider.. :D Beside the New Text I also needed to declare the text differently in game manager but beside that The Video still works in 2024! Loved it as Entry. Now im Going through Unity Learn and come C# Free Course to learn the Basics. Flappy Bird here rly helped me to understand some basic parts , even tho I did almost copy paste a lot. Thanks for this!
@safakaya2904
@safakaya2904 Год назад
That was amazing tutorial !
@alsowow
@alsowow 27 дней назад
A fun tip for people who just finished the tutorial is to add some more things to your game with the things you learned throughout the tutorial! like a simple highscore counter for example
@sync7509
@sync7509 Год назад
am having problems with the game over at the end, I did every thing he did but it does not work . please help
@rocketsama
@rocketsama Год назад
Thanks for this tutorial. Great Job!
@surajmadhushan584
@surajmadhushan584 21 день назад
Thank you so much , nuce tutorial, learn a lot
@mek_channn9421
@mek_channn9421 2 месяца назад
Thank you adam. You are best
@teamshuriken5231
@teamshuriken5231 2 года назад
Thank you, very newbie friendly!
@patelvraj1362
@patelvraj1362 Год назад
one quick question:: did i have to enable rigidbody to get collision working because if i remove rigidbody then my OnTrigger function is not working
@telocim
@telocim 10 месяцев назад
Excellent tutorial, thank you!
@jamesluttinger1224
@jamesluttinger1224 Год назад
Okay say I made a 3d world, how can i have it so i can walk up to an arcade cabinet in game and press e and then play the game with the scene still around it?
@jawa_random
@jawa_random Год назад
Thanks a lot man, you really help me dive into the unity faster than I thought. Gonna dive more into your video soon
@Social_Mastery
@Social_Mastery 2 года назад
Assets\Sorpts\player.cs(67,30): error CS0246: The type or namespace name 'GameManager' could not be found (are you missing a using directive or an assembly reference?) 😢😢
@error-hz8qc
@error-hz8qc 2 года назад
whenever my player collide with ground or pipes my game is throwing me this error NullReferenceException: Object reference not set to an instance of an object Movement.OnTriggerEnter2D (UnityEngine.Collider2D other) (at Assets/Scripts/Movement.cs:56) EDIT:- I did't attach the Gamemanager script to the GameManager Object.
@vaisakhrs7046
@vaisakhrs7046 Год назад
Inside the ScreenToWorldPoint function,here as our left edge is at (0,0),we can just say Vector3.zero.But how can I provide a vector3 component of any other particular point??
@yan8368
@yan8368 2 года назад
The scoring text is behind the background, changed the layer order but it's still the same, how to make it in front?
@user-zl9dx4id2g
@user-zl9dx4id2g 2 года назад
When i downloaded the sprites and everything, it put it in a folder and now i cant get anything out of the folder.what do i do
@SkidMania
@SkidMania 2 года назад
This is a great tutorial, thank you very much. I am right near the end of it right now and have a question. I notice that when the bird touches the ground or a pipe that the bird is always in a slightly different position like it gets caught at a different time rather than stop pixel to pixel with the colliders at precisely the same time and distance each time. How come it does this and is there a way to get it to react in a way where it will be the same every time. Thinking of your asteroids tutorial, when the ship crashes into the edge of the screen it is precise every time like it hits a wall, it doesn't go partway through like the bird does with the pipes and ground. Any ideas?
@minimaxpowertv1617
@minimaxpowertv1617 Год назад
Any idea on how to configure another choice in the background and the pipes (like skin for day, skin for night) ?
@david04x
@david04x 2 года назад
Amazing video. Thank you so much!!!
@REDLION5921
@REDLION5921 9 месяцев назад
Great Tutorial! I just have a question, my "score" text is not wanting to go into the GameManager slots but all the other ones like, "Player", "PlayButton", and "GameOver" go in just fine. The "score" text is the only issue I have.
@toovuil
@toovuil 2 года назад
Great! Thanks so much for this. Would love to see you do Angry Birds.
@uniKorn8
@uniKorn8 2 года назад
👍
@morrismannen6221
@morrismannen6221 2 года назад
When I try playing my game it wont change sprites, even though I have selected two different sprites to change between. I have tried copy and pasted your code into mine but still it wont change. Any ideas as to why? EDIT: somehow I removed the script and tried again and now it worked, dont know what I did different really.
@cx717cx717
@cx717cx717 7 месяцев назад
Great lesson. Thank you!
@GreatGamingGoodness
@GreatGamingGoodness Год назад
I know no one will respond, but when I type, "private void OnTriggerEnter2D(Collider2D other)" the other won't turn blue and debug says "Object reference not set to an instance of an object" when colliding with pipes and the ground. What am I doing wrong?
@meteach
@meteach 3 месяца назад
Thanks bro Video is really great I really enjoy your video
@CouldBeSpiderman
@CouldBeSpiderman Год назад
How can i change the text if you begin playing cuz it says "Game Over" but i want to change it to "Get Ready!"
@LonTOn
@LonTOn 11 месяцев назад
hey i just want to add a pause button for the game . When i test , it said that the button doesn't assign in the inspector . How can i fix that ?
@3ddeseigner527
@3ddeseigner527 3 месяца назад
great work thanks
@adamdanas
@adamdanas 2 года назад
Just WOW. Thank you 😊
@locngotuan5606
@locngotuan5606 4 месяца назад
what extension u using for vscode in this video? tysm
@munner7
@munner7 Год назад
Great work bro
@ziyaadkabani8312
@ziyaadkabani8312 2 года назад
My score doesn't increase when I go through the pipes, I went back through the video but didn't see any errors. Do you know what it could be?
@lxl7413
@lxl7413 2 года назад
Hmmm..... everything about this tutorial is awesome. I just came up to 1 problem. When you play the game and you hit the ground, it pauses but when i click the play button it continues forward and does not reset properly. Since I went through all this in a day and do not have much experience with this I wanted to ask you guys for some tips and what part to work on to fix it? When the bird collides with the pipes and i click the play button it resets, but not with the ground. Thank you a lot in advance anon for helping me structure the puzzle in my head !
@alphamvmnt
@alphamvmnt 3 месяца назад
Awesome video! Can you do a tutorial on adding a menu and also an animation tutorial screen before the game starts?
@fredericdompierre4986
@fredericdompierre4986 Год назад
Thank's , Nice tutorial ! In my Unity Version, I don't have UI button but only TextMeshPro Button. It seems to cause problems with SetActive. Any ideas to fix that Problem ? Best regards, thank's !
@dumomabhena8876
@dumomabhena8876 Год назад
This was an amazing tutorial. Thank you so much. May you please upload a tutorial of the game Alto
Далее
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 424 тыс.
How to 100% Pokémon
17:27
Просмотров 4,9 тыс.
How To Easily Make Flappy Bird in Unity Tutorial
10:23
I Made the Same Game in 8 Engines
12:34
Просмотров 3,9 млн
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 698 тыс.
The Future of Game Development
8:58
Просмотров 1,2 млн
How To Learn Unity In 2024
7:17
Просмотров 9 тыс.
How to make Pacman in Unity (Complete Tutorial) 🟡🍒
3:26:31
C# Tutorial - Make a flappy bird game in windows form
26:20