Make Flappy Bird in 5 Minutes (Unity Tutorial)

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025
  • Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
    Join our Discord Community! - / discord
    Make flappy bird with this quick Unity tutorial. We'll even manage to squeeze in a highScore system by the end!
    Download The TileSet :
    www.spriters-r...
    Download The Flappy Bird font
    www.dafont.com...
    ---
    In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: assetstore.uni...?aid=1100lwgBQ
    ---
    Who We Are-------------------------------------
    If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
    Wishlist our Games:
    Wishlist Samurado on Steam! - store.steampow...
    Wishlist Veil of Maia! - store.steampow...
    Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
    Follow us on Twitter for regular updates!
    / sasquatchbgames
    #unitytutorial #unity2d #unity3d

Комментарии • 136

  • @xxnickxx5716
    @xxnickxx5716 7 месяцев назад +32

    I just started working with unity this week and this took me 2 attempts to follow. It was extremely frustrating at parts making me feel like this was his fault for moving too fast. I got stuck making the scoring work for hours until I figured out you have to add the pipe move script to the pipe prefab and not the individual pipes. But in the end I figured everything out, learned a lot about unity, and have some code to reference for other projects so I’d say it’s a solid tutorial.

    • @ErenleTrenn
      @ErenleTrenn 7 месяцев назад +1

      Omg ty i was searching for that

    • @MrDon-17
      @MrDon-17 5 месяцев назад +2

      I don't think this is a beginners tutorial

    • @zandousgames
      @zandousgames 4 дня назад +1

      He was goin to fast

    • @zandousgames
      @zandousgames 4 дня назад

      @@MrDon-17 agree (It should be simple)

  • @basedlegit
    @basedlegit Месяц назад +3

    thank you so much! I did one my self before watching this video! There' are so many stupid mistakes I made lol, thanks to you my codes look MUCH cleaner now

  • @SenguMuramasa
    @SenguMuramasa 2 года назад +87

    That's how tutorials should be done: short, straight to the point, clear in the explanation. Brilliant. Btw the link for the TileSet is not working anymore

  • @mr.commonsense6645
    @mr.commonsense6645 Год назад +84

    A complete beginner wouldn't be able to follow this

    • @GRIM7153
      @GRIM7153 7 месяцев назад +8

      exactly this video is just going through one of my ears and out the other its like he's talking in 2x speed

    • @ADox_Short
      @ADox_Short 6 месяцев назад

      just look up the basics

    • @GeogrifyFresh
      @GeogrifyFresh 6 месяцев назад +4

      watch his angry birds video, that will teach the basics for beginners

    • @mikimirai42
      @mikimirai42 5 месяцев назад

      If you want to learn Unity basics you should better go and search for that. This tutorial is for making a flappy bird clone, it can't get easier than this xD

    • @alexzou5503
      @alexzou5503 4 месяца назад

      ummmm, i did fine, first game

  • @JakeBloxOfficial
    @JakeBloxOfficial Год назад +5

    Thank you for this tutorial, I now made flappy bird. I was stuck on a script so I cam here and re did the entire game. (I made it myself first, then came here).Thank you again.

  • @amikawi
    @amikawi 6 месяцев назад +1

    Really great refresher after not having used Unity for a couple years. Thanks!

  • @LukeCreates
    @LukeCreates 6 месяцев назад +1

    This is great, first time cracking Unity open and no better way to learn than getting my feet put to the fire. Feel like I'm on one of those cooking shows and I'm trying to follow Gordon Ramsay. It probably helps that I'm a full time web developer so I at least know a thing about a thing

  • @WeirdGoat
    @WeirdGoat Год назад +19

    Great mini and interesting project! You could do 5 things to bring your Unity skill to the next level
    1. Object Pooling: Pipes;
    2. Use scriptable object to make "Score" and "Best";
    3. Replace UnityEvent with scriptable object event.
    4. Port a android app.
    5. Port a iOS version.

    • @DeepSpaceInteractive
      @DeepSpaceInteractive 5 месяцев назад

      why so much love for scriptable object event? just use delegates and or actions for lambdas?

  • @hamzehsuccar270
    @hamzehsuccar270 Год назад +2

    This is what i have been looking for! Thanks!

  • @valentin_danev
    @valentin_danev 9 месяцев назад +1

    Amazing content! Thank you so much

  • @TenrousaAthena
    @TenrousaAthena 2 месяца назад

    This is insane. Thank you very much

  • @GamingAllTime258
    @GamingAllTime258 2 месяца назад +3

    i have a problem with the object (the bird) almost not going up but down it works like shown

  • @ziertier9689
    @ziertier9689 10 месяцев назад +7

    Trying unity for the 15th time, this time I'm trying to actually make something, a video said to make flappy bird, I thought it would be easy, but this is so fast it took me 30 minutes to figure out how to do what the first 35 seconds of the video said to do, the sprites weren't working so I had to watch a separate video, I don't want to hate or be a hater but I was having a literal headache trying to process what you were doing and saying at the same time.

  • @iliachakarov7285
    @iliachakarov7285 Год назад +1

    OMG THIS IS SOO GOOD!

  • @abigail-leighstoffberg3949
    @abigail-leighstoffberg3949 4 месяца назад +1

    Just finished following along while also using custom assets - really good tutorial, thank you 💚 Somehow the thing I am struggling with is positioning the score texts correctly as the editor and game mode does not reflect how they look in the build. I find it funny how it is that which I am struggling with the most🤣 That aside - easy to follow if you have some experience with Unity, I look forward to trying out more of these quick tutorials that you have :)

  • @midniteoilsoftware
    @midniteoilsoftware 2 года назад +2

    Brilliantly done!

  • @LeshaTheBeginner
    @LeshaTheBeginner Год назад

    Good job on doing tutorial!

  • @Punchmememe
    @Punchmememe 10 месяцев назад +2

    Thanks man!
    I have challanged my selff to make 15 small games with futures like score and yhea movement, (Just new in unity and scripting) So i tought this would be an amazing start. I already have done the traditional Pong game, And a basketball game, Now lets do flappybird. Still have 28 Days to go so hopefully i will reach my goal.

    • @amikawi
      @amikawi 6 месяцев назад +1

      Did you get all 15 done?

    • @Punchmememe
      @Punchmememe 6 месяцев назад

      @@amikawi i have done it yes, But it is hard. And it works like a charm. learned allot. working under presure, Working faster. Google things little faster. It overal had great improvements.

  • @helloworldsev
    @helloworldsev Год назад

    Thank you for video!

  • @lloyda2025
    @lloyda2025 2 года назад +11

    This should be an official speedrun.

  • @zandousgames
    @zandousgames 4 дня назад +1

    sprite is stuck behind wallpaper

  • @uCanCallMeBob
    @uCanCallMeBob Год назад +28

    good and quick but i wouldnt recommend it to someone whos never used unity

    • @uCanCallMeBob
      @uCanCallMeBob Год назад +1

      my bird barely goes up

    • @JonelKingas
      @JonelKingas Год назад +1

      I started unity 2 weeks ago and at least about unity i know a lot already code pretty much 0

    • @badrakhariunchimeg1031
      @badrakhariunchimeg1031 4 месяца назад

      I mean like Disney movies

  • @agro23
    @agro23 Год назад

    Completely worth subscribing for this video alone.

  • @Arux2027
    @Arux2027 6 дней назад

    I have a problem where the collision isnt working, I have rigid bodies on all the parts and colliders both in 2d, and my code is exactly the same as his. basically everything is colliding but it wont trigger the game to end

  • @snoozybara
    @snoozybara Месяц назад +1

    Is it possible to check player's collision with the pipe or the ground inside the game manager instead of the player game object? What's the pros and cons of doing that instead of checking the collision inside the player game object?

  • @Ambussing
    @Ambussing Год назад +7

    i wish you wouldn't cut the small parts like where to find an animation or how correctly use sprite editor, I could've spent 20 more seconds and not search and watch 20 min videos, but overall this is a great video, at least I know where I should start

  • @Unknown8Gamer
    @Unknown8Gamer День назад

    whenever i click Generate Font Atlas with any font file(ive tried urs & others)
    it just shuts the project down. like closes my project.

  • @Opt4grunt
    @Opt4grunt 11 месяцев назад +2

    Thank you for helping me learn. I have a question about the restart game part. What do you mean by "dont forget to add scene management name" do I have to add the string in the script. I am juatvwondering because I have 0 XP in scripting and am trying for some time byt cant figure out how to get the button to work

  • @РустемМазитов-х2к
    @РустемМазитов-х2к 11 месяцев назад

    thank you very much!

  • @malufonseca7143
    @malufonseca7143 Год назад +2

    I have a big problem: the pipes are being spawnered out of the scene or just a piece of them are showing. And I dont know how to fix it. I watched the video many times but cant fix it. Can someone help me?

    • @cocolennon_
      @cocolennon_ Год назад

      Did you set their position properly in the prefab?

    • @raymondmercado3507
      @raymondmercado3507 5 месяцев назад

      @@cocolennon_ yes im just gonna try a different approach

  • @Bruno-vn3qq
    @Bruno-vn3qq 2 года назад +1

    nice video dude

  • @TheCrowReviewer
    @TheCrowReviewer 2 года назад +1

    Really cool!

  • @bobotv377
    @bobotv377 Год назад +1

    Scoring is not working on me, i check everything but still the trigger is not working.. i guess but the things are same but still not working. can u help me?

  • @BlackthornCity
    @BlackthornCity Месяц назад

    In case anyone else runs into this issue with the bird only going down and not flying upwards:
    Check your Bird Game Object, and scroll all the way to the bottom to the Fly Behavior Script. Double-check the Velocity variable there... Even though the script declares it at 1.5, for some reason, mine was at 0. So clicking didn't do anything! Change that 0 to 1.5, it should fly
    Also - in the video, he sets the Gravity Scale to 0.65, but he doesn't say it audibly. It just happens on screen 01:24

  • @adz.e
    @adz.e 7 месяцев назад +1

    Everything except from the scoring system is working for me, no errors, just no scoring is happening when i go through the pipes :(

    • @adz.e
      @adz.e 7 месяцев назад +1

      Figured it out!
      I hadnt put the move pipes script onto the object with the box collider for scoring, so it wasn't spawning into the game at all

  • @MusicFlowDaily
    @MusicFlowDaily 10 месяцев назад

    Strange, I wrote the exact script for pipes "MovePipe", added box collider, but they just ain't moving, and there's no errors also

  • @Esoteric_Games
    @Esoteric_Games 2 года назад +1

    Awesome video!

  • @Callum71969
    @Callum71969 Год назад +1

    Title : " In 5 mins"
    Video : "6 mins"
    Jokes aside, very nice tutorial

  • @Bazerath
    @Bazerath 10 месяцев назад

    So I'm trying really hard to make this without a tutorial. I've looked at the Unity documentation and tryed googling awnsers to get the pipes to move left for a total of 4 hours split between two days. I broke, and now I'm here just to learn it was 1 line of code.

  • @KhattakVibess804
    @KhattakVibess804 8 месяцев назад +1

    Assets\Script\FlapBehaviour.cs(4,19): error CS0234: The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

    • @adz.e
      @adz.e 7 месяцев назад

      Yo had this problem just fixed it.
      You have to open the package manager, theres a tab that says "Packages: In Project", click to change it to "Unity Registery", then search & install input system.
      Hope it helps!

  • @KhoaTran-sh1do
    @KhoaTran-sh1do 5 месяцев назад

    Thank you

  • @SealKingLol
    @SealKingLol 2 месяца назад

    2:54 the code is not really working it says missing _pipe game object and stuff

  • @jerpa985
    @jerpa985 Год назад +1

    So when im writing the "PipeIncreaseScore" code it keeps on saying error CS0122. any way to fix it?

  • @misslittlegame
    @misslittlegame Месяц назад

    when i added the loopGround script the ground just dissappeared for me.. has anyone else also expirianced it? do u know how to solve?

  • @viraj3944
    @viraj3944 Год назад

    I don't understand the height range script. Why didn't you have to put coordinates to spawn the pipes

    • @angelgiron4811
      @angelgiron4811 Год назад

      When the code is running, a new spawn location is being generated at x = 0, or the center of the Empty Game Object, and then, the script choses a random "y" value, between the negative of your height range through the postive of your height range, so there is and equal chance of it spawning over/under the middle. So, if the script chooses ".5" as your "y" value, then the spawnPos = (0, .5), thus you do not have to manually create an infinte list of coordiantes. Also, these are not global coordinates, but instead local to the PipeSpawner GameObject!

  • @roymalvinwijaya3025
    @roymalvinwijaya3025 22 дня назад

    i wanna ask, is this use OOP (Object Oriented Programming)?

    • @Arshhhe
      @Arshhhe 16 дней назад

      yes c# is oop

  • @F.J.Gaming5063
    @F.J.Gaming5063 Год назад

    I have a question, my highscore will go back to 0 if you die. but then start working again once you reach your original highscore? How do i fix that

  • @iCrazy414
    @iCrazy414 Год назад +1

    Do you use a specific snippet extension for VSCode? I can't get it to autocomplete Unity code for me. Not a big deal, just a quality of life kind of thing.

  • @iiropeltonen
    @iiropeltonen 2 года назад

    Impressive.

  • @iliachakarov7285
    @iliachakarov7285 Год назад +1

    All good. Amazing tutorial. But LoopGround be buggy. My ground disappears. I've done everything the same. NW though. Disable it and everything's perfect. Cool speedrun!!

  • @danthon1267
    @danthon1267 8 месяцев назад

    which extensions do you use on vscode to program c# and for unity?

    • @danthon1267
      @danthon1267 8 месяцев назад

      or isn't this vscode, perhaps?

    • @yeah-its-me-q1f
      @yeah-its-me-q1f 6 месяцев назад

      @@danthon1267 it is vs community you just have to check development in unity when installing vs community

    • @monkeboiboiboigangster
      @monkeboiboiboigangster 5 месяцев назад

      @@danthon1267 he's using vsenterprice 2022

  • @KareemAnabtawi
    @KareemAnabtawi 10 месяцев назад

    Dont know if anyone has faced this issue too. But my box colliders keep on spawning to the right of the pipes. Where the player never touches them. Anyone face this and find a fix?

    • @KareemAnabtawi
      @KareemAnabtawi 10 месяцев назад

      If anyone runs into this issue make sure you press Apply on the pipes prefab overrides

  • @TheHUMAN-e8r
    @TheHUMAN-e8r 10 месяцев назад

    how am I supposed to bring the sprites form the sprite editor to the project

  • @Unknown8Gamer
    @Unknown8Gamer 2 месяца назад

    anything that needs to be installed prior to this.
    if sum1 plans to do this with 0 knowledge about untiy.
    They will need to know every single detail.

  • @Floppa-i8d
    @Floppa-i8d Год назад

    i don't find the sprite button,can u please help?thanks

    • @badrakhariunchimeg1031
      @badrakhariunchimeg1031 4 месяца назад

      It's becouse we don't care future of the planet etc just do basic things doing nothing watching girls

  • @WhimzyInteractive
    @WhimzyInteractive Год назад +1

    Classic

  • @secretz748
    @secretz748 8 месяцев назад

    how to drag the files in to the project

  • @HistoryHHT1
    @HistoryHHT1 8 месяцев назад

    Doesn’t work. I click with my mouse and it still won’t jump. Waste of time

  • @HarrisonMace-dc4is
    @HarrisonMace-dc4is 8 месяцев назад

    How do you get outlines on the text

  • @zippyftw
    @zippyftw Год назад

    where did you learn to code????

  • @har3nz
    @har3nz Год назад

    I stil ldie when i enter the score collision between pipes

    • @zaglossus3530
      @zaglossus3530 Год назад

      be sure to mark down isTrigger option in the box collider

  • @omargaber3122
    @omargaber3122 Год назад

    Can I get this project open source please?

  • @AnnieLRoach
    @AnnieLRoach Год назад +1

    where's the link

  • @uCanCallMeBob
    @uCanCallMeBob Год назад +1

    wait what extensions do u use xd

    • @corrier4532
      @corrier4532 Год назад +1

      dude, its apps, not extensions

  • @IRZMO
    @IRZMO Год назад +1

    3:45

  • @KIRILLINATOR
    @KIRILLINATOR 5 месяцев назад

    i hate here only that so video is speed up so i cant even try wrote script but all work very great :)

  • @animativity7400
    @animativity7400 Год назад +1

    this was best

  • @DiveInto8DMusic
    @DiveInto8DMusic Месяц назад

    can anybody provide me scripts, i cant find
    please help fast

  • @MELODIFY16
    @MELODIFY16 Год назад

    How to make starring ui

  • @mkespieditz6485
    @mkespieditz6485 Год назад

    Where is the sprite editor

    • @VavaDragons
      @VavaDragons Год назад

      yes where is it

    • @nwoooyz
      @nwoooyz 7 месяцев назад +1

      If you haven't found it by now: Select the image in your PROJECT tab, Where you set the SPRITE MODE from "Single" to "Multiple" directly under that will be a button that says "Sprite Editor", Click that button and locate the corner of each sprite and drag the border to fit the entire sprite on every sprite, click APPLY after you have finished fitting a sprite into the border, once your finished with every sprite and have clicked APPLY on the last one you can close the window and continue with the project.
      Hopefully this helps you!

  • @VavaDragons
    @VavaDragons Год назад +1

    Guys under the video it should say
    'Subscribed'
    Not
    'Subscribe'

  • @Mirach7
    @Mirach7 Год назад

    Norsk Game?

  • @ShadowexOficial
    @ShadowexOficial Год назад

    4:28

  • @JustPrim565
    @JustPrim565 3 месяца назад +2

    It took me 2 hours, not 5 mins

  • @alexeuan1101
    @alexeuan1101 10 месяцев назад

    i love u

  • @HarriForUnity
    @HarriForUnity 8 месяцев назад

    This video is bad, ive had to go to other videos to get blocks of code and replace half of the code in this video with code from another. I cant follow along because your too fast and Im not pausing every millisecond just to get one line of code... and to mention ive had so many bugs and glitches its unimaginable to see how bad a "tutorial" can be.

  • @Nuclups
    @Nuclups Год назад

    muy buen viedo pero, solo lo necesito en español saludos

  • @Ikmauki
    @Ikmauki Год назад

    I have dislike option, this video got 0 dislikes like it should

  • @shivcenzo4008
    @shivcenzo4008 7 месяцев назад

    go slow you are not telling how to do few steps

  • @Coco-gg5vp
    @Coco-gg5vp 2 года назад

    First

  • @jaexuka
    @jaexuka Год назад

    wasted my time

  • @soup_bone
    @soup_bone Год назад +1

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PipeIncreaseScore : MonoBehaviour
    {
    public Score scoreInstance; // Reference to the Score instance
    private void OnTriggerEnter2D(Collider2D collision)
    {
    if (collision.gameObject.CompareTag("Player"))
    {
    Score.Instance.UpdateScore();
    }
    }
    }
    Assets\Scripts\PipeIncreaseScore.cs(13,19): error CS0117: 'Score' does not contain a definition for 'Instance'
    How do i fix this so the game has a scoreboard.

    • @zaglossus3530
      @zaglossus3530 Год назад

      you got to set the instance to static " public static Score scoreInstance; "

  • @snoozybara
    @snoozybara Месяц назад

    Hi, I tried to put the rotation logics in the Update method instead of the FixedUpdate method but it didn't work the same as if I put the code in FixedUpdate without the Time.deltaTime.
    private void Update()
    {
    if (Mouse.current.leftButton.wasPressedThisFrame)
    {
    _rb.linearVelocity = Vector2.up * _velocity;
    transform.rotation = Quaternion.Euler(0, 0, _rb.linearVelocity.y * Time.deltaTime * _rotationSpeed);
    }
    }
    How do I know when I need to use FixedUpdate and when do I not need to do that?

  • @KhattakVibess804
    @KhattakVibess804 8 месяцев назад +1

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.InputSystem;
    public class FlapBehaviour : MonoBehaviour
    {
    [SerializeField] private float _velocity = 1.5f;
    [SerializeField] private float _rotationSpeed = 10f;
    private Rigidbody2D _rb;
    private void Start()
    {
    _rb = GetComponent();
    }
    private void Update()
    {
    if (Mouse.current.leftButton.wasPressedThisFrame)
    {
    _rb.velocity = Vector2.up * _velocity;
    }
    }
    private void FixedUpdate()
    {
    transform.rotation = Queternion.Euler(0, 0, _rb.velocity.y* _rotationSpeed);
    }
    }
    what is erorr

    • @HarriForUnity
      @HarriForUnity 8 месяцев назад

      have you installed InputSystem in package manager?

    • @GuiiWolff666
      @GuiiWolff666 4 месяца назад

      You wrote QUETERNION, it is quaternion hahahaha

  • @Matt12mjc
    @Matt12mjc 10 месяцев назад +7

    You should consider making longer format content instead of clickbaiting people with a "MAKE X GAME IN 5 MINUTES!" title. The video isn't even 5 minutes long, and the user will obviously spend more than 5 minutes creating the game following you along. The hardest part of your tutorial should be conceptually understanding what you are teaching, not literally trying to follow what you are doing, which in fact should be the easiest part of your tutorial. There are several instances where you don't mention a change you made to properties, gameobjects, etc. as well as several changes that were shown on screen for > .15 seconds in real time. Additionally, since you didn't take the time to explain why/what the things are that you did, I would bet that most people that followed along don't even know what they did/learned very little, and would not even be able to recreate this project on their own/apply the concepts used in this video to other projects if they had to. Just some things to consider if you actually want to teach people.

    • @Otisdub
      @Otisdub 9 месяцев назад +1

      ...you do realize you're the bottom comment, right? (no hate, but I'm not joking.)

    • @Matt12mjc
      @Matt12mjc 9 месяцев назад +3

      @@Otisdub if by “bottom” you mean least liked of course it is, it’s two weeks old on a video from a year ago. Regardless, what I said is constructive but more importantly true. You should care about what people are actually saying, not how popular what they are saying is (ad populum fallacy). This tutorial is a textbook example of what many developers call “tutorial hell”.

    • @Otisdub
      @Otisdub 9 месяцев назад

      @@Matt12mjc I get that you're trying to tell the truth. BUT, what he means by 5 minutes is a short amount of time.

    • @nwoooyz
      @nwoooyz 7 месяцев назад +1

      I've been doing this for 40 minutes and i'm only 1:30 through the video, it's crazy