Make Flappy Bird in 5 Minutes (Unity Tutorial)

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 120

  • @xxnickxx5716
    @xxnickxx5716 5 місяців тому +25

    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 4 місяці тому +1

      Omg ty i was searching for that

    • @MrDonXD.
      @MrDonXD. 3 місяці тому +1

      I don't think this is a beginners tutorial

  • @SenguMuramasa
    @SenguMuramasa Рік тому +75

    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

  • @amikawi
    @amikawi 4 місяці тому +1

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

  • @WeirdGoat
    @WeirdGoat Рік тому +18

    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 2 місяці тому

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

  • @mr.commonsense6645
    @mr.commonsense6645 9 місяців тому +52

    A complete beginner wouldn't be able to follow this

    • @GRIM7153
      @GRIM7153 5 місяців тому +5

      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 4 місяці тому

      just look up the basics

    • @GeogrifyFresh
      @GeogrifyFresh 4 місяці тому

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

    • @mikimirai42
      @mikimirai42 3 місяці тому

      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 2 місяці тому

      ummmm, i did fine, first game

  • @EvaCheats
    @EvaCheats Рік тому +4

    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.

  • @LukeCreates
    @LukeCreates 3 місяці тому +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

  • @hamzehsuccar270
    @hamzehsuccar270 Рік тому +2

    This is what i have been looking for! Thanks!

  • @abigail-leighstoffberg3949
    @abigail-leighstoffberg3949 2 місяці тому +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 :)

  • @GamingAllTime258
    @GamingAllTime258 18 днів тому +1

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

  • @valentin_danev
    @valentin_danev 7 місяців тому +1

    Amazing content! Thank you so much

  • @ziertier9689
    @ziertier9689 8 місяців тому +5

    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!

  • @MusicFlowDaily
    @MusicFlowDaily 8 місяців тому

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

  • @Opt4grunt
    @Opt4grunt 9 місяців тому +1

    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

  • @SealKingVR
    @SealKingVR 2 дні тому

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

  • @helloworldsev
    @helloworldsev Рік тому

    Thank you for video!

  • @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

    • @justshortstoday
      @justshortstoday 2 місяці тому

      i am facing troubles how do i find an answer?

  • @lloyda2025
    @lloyda2025 Рік тому +11

    This should be an official speedrun.

  • @Bazerath
    @Bazerath 8 місяців тому

    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.

  • @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?

  • @uCanCallMeBob
    @uCanCallMeBob Рік тому +26

    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 Місяць тому

      I mean like Disney movies

  • @agro23
    @agro23 Рік тому

    Completely worth subscribing for this video alone.

  • @midniteoilsoftware
    @midniteoilsoftware Рік тому +2

    Brilliantly done!

  • @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 3 місяці тому

      @@cocolennon_ yes im just gonna try a different approach

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

    thank you very much!

  • @LeshaTheBeginner
    @LeshaTheBeginner Рік тому

    Good job on doing tutorial!

  • @adz.e
    @adz.e 5 місяців тому +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 5 місяців тому +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

  • @jerpa985
    @jerpa985 Рік тому +1

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

  • @Punchmememe
    @Punchmememe 7 місяців тому +1

    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 4 місяці тому

      Did you get all 15 done?

    • @Punchmememe
      @Punchmememe 4 місяці тому

      @@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.

  • @KhattakVibess804
    @KhattakVibess804 6 місяців тому +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 5 місяців тому

      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!

  • @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

  • @KhoaTran-sh1do
    @KhoaTran-sh1do 2 місяці тому

    Thank you

  • @Bruno-vn3qq
    @Bruno-vn3qq Рік тому +1

    nice video dude

  • @TheHUMAN-e8r
    @TheHUMAN-e8r 8 місяців тому

    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.

  • @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!

  • @zippyftw
    @zippyftw 10 місяців тому

    where did you learn to code????

  • @iliachakarov7285
    @iliachakarov7285 Рік тому

    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!!

  • @secretz748
    @secretz748 5 місяців тому

    how to drag the files in to the project

  • @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.

  • @TheCrowReviewer
    @TheCrowReviewer Рік тому +1

    Really cool!

  • @AnnieLRoach
    @AnnieLRoach Рік тому +1

    where's the link

  • @KareemAnabtawi
    @KareemAnabtawi 8 місяців тому

    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 8 місяців тому

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

  • @Callum71969
    @Callum71969 Рік тому +1

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

  • @Esoteric_Games
    @Esoteric_Games Рік тому +1

    Awesome video!

  • @danthon1267
    @danthon1267 5 місяців тому

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

    • @danthon1267
      @danthon1267 5 місяців тому

      or isn't this vscode, perhaps?

    • @yeah-its-me-q1f
      @yeah-its-me-q1f 3 місяці тому

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

    • @monkeboiboiboigangster
      @monkeboiboiboigangster 3 місяці тому

      @@danthon1267 he's using vsenterprice 2022

  • @iiropeltonen
    @iiropeltonen Рік тому

    Impressive.

  • @omargaber3122
    @omargaber3122 Рік тому

    Can I get this project open source please?

  • @Floppa__Dev
    @Floppa__Dev Рік тому

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

    • @badrakhariunchimeg1031
      @badrakhariunchimeg1031 Місяць тому

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

  • @HistoryHHT1
    @HistoryHHT1 6 місяців тому

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

  • @HarrisonMace-dc4is
    @HarrisonMace-dc4is 6 місяців тому

    How do you get outlines on the text

  • @uCanCallMeBob
    @uCanCallMeBob Рік тому +1

    wait what extensions do u use xd

    • @corrier4532
      @corrier4532 Рік тому +1

      dude, its apps, not extensions

  • @MELODIFY16
    @MELODIFY16 Рік тому

    How to make starring ui

  • @KIRILLINATOR
    @KIRILLINATOR 3 місяці тому

    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

  • @Mirach7
    @Mirach7 Рік тому

    Norsk Game?

  • @WhimzyInteractive
    @WhimzyInteractive Рік тому +1

    Classic

  • @JustPrim565
    @JustPrim565 Місяць тому +2

    It took me 2 hours, not 5 mins

  • @har3nz
    @har3nz Рік тому

    I stil ldie when i enter the score collision between pipes

    • @zaglossus3530
      @zaglossus3530 10 місяців тому

      be sure to mark down isTrigger option in the box collider

  • @mkespieditz6485
    @mkespieditz6485 Рік тому

    Where is the sprite editor

    • @VavaDragons
      @VavaDragons Рік тому

      yes where is it

    • @nwoooyz
      @nwoooyz 5 місяців тому +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'

  • @IRZMO
    @IRZMO Рік тому +1

    3:45

  • @alexeuan1101
    @alexeuan1101 7 місяців тому

    i love u

  • @ShadowexOficial
    @ShadowexOficial Рік тому

    4:28

  • @Nuclups
    @Nuclups Рік тому

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

  • @HarriForUnity
    @HarriForUnity 6 місяців тому

    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.

  • @mabenReal
    @mabenReal Рік тому

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

  • @shivcenzo4008
    @shivcenzo4008 4 місяці тому

    go slow you are not telling how to do few steps

  • @soup_bone
    @soup_bone 11 місяців тому +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 10 місяців тому

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

  • @Coco-gg5vp
    @Coco-gg5vp Рік тому

    First

  • @jaexuka
    @jaexuka Рік тому

    wasted my time

  • @KhattakVibess804
    @KhattakVibess804 6 місяців тому +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 6 місяців тому

      have you installed InputSystem in package manager?

    • @GuiiWolff666
      @GuiiWolff666 Місяць тому

      You wrote QUETERNION, it is quaternion hahahaha

  • @Matt12mjc
    @Matt12mjc 7 місяців тому +5

    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 7 місяців тому

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

    • @Matt12mjc
      @Matt12mjc 7 місяців тому +2

      @@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 7 місяців тому

      @@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 5 місяців тому +1

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