Make Flappy Bird in 5 Minutes (Unity Tutorial)
Ойындар
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-resource.com/mob...
Download The Flappy Bird font
www.dafont.com/04b-19.font
---
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.unity.com?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.steampowered.com/app/23...
Wishlist Veil of Maia! - store.steampowered.com/app/19...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
/ sasquatchbgames
#unitytutorial #unity2d #unity3d
Пікірлер: 95
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
8 күн бұрын
Omg ty i was searching for that
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
@sasquatchbgames
Жыл бұрын
Thanks for that, I've fixed the link!
A complete beginner wouldn't be able to follow this
@Melotoni
Ай бұрын
THATS WHAT IM SAYING I DONT EVEN KNOW HOW TO MAKE A FOLDER
@GRIM7153
28 күн бұрын
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
Күн бұрын
just look up the basics
This is what i have been looking for! Thanks!
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.
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.
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
Amazing content! Thank you so much
OMG THIS IS SOO GOOD!
good and quick but i wouldnt recommend it to someone whos never used unity
@uCanCallMeBob
Жыл бұрын
my bird barely goes up
@JonelKingas
Жыл бұрын
I started unity 2 weeks ago and at least about unity i know a lot already code pretty much 0
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
Good job on doing tutorial!
Thank you for video!
So when im writing the "PipeIncreaseScore" code it keeps on saying error CS0122. any way to fix it?
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?
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.
@andrzejwlasowski7716
4 ай бұрын
It's Visual Studio, not VSCode.
Brilliantly done!
i don't find the sprite button,can u please help?thanks
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.
how am I supposed to bring the sprites form the sprite editor to the project
Strange, I wrote the exact script for pipes "MovePipe", added box collider, but they just ain't moving, and there's no errors also
This should be an official speedrun.
thank you very much!
Completely worth subscribing for this video alone.
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_
8 ай бұрын
Did you set their position properly in the prefab?
nice video dude
How do you get outlines on the text
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
22 күн бұрын
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!
where did you learn to code????
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.
which extensions do you use on vscode to program c# and for unity?
@danthon1267
Ай бұрын
or isn't this vscode, perhaps?
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!!
Can I get this project open source please?
I don't understand the height range script. Why didn't you have to put coordinates to spawn the pipes
@angelgiron4811
8 ай бұрын
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!
where's the link
how to drag the files in to the project
Awesome video!
How to make starring ui
Impressive.
can I get the codes of the game you made, this is very important for me
Really cool!
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
3 ай бұрын
If anyone runs into this issue make sure you press Apply on the pipes prefab overrides
can you give the unity files of the game
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
wait what extensions do u use xd
@corrier4532
Жыл бұрын
dude, its apps, not extensions
I stil ldie when i enter the score collision between pipes
@zaglossus3530
6 ай бұрын
be sure to mark down isTrigger option in the box collider
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
20 күн бұрын
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
this was best
3:45
Norsk Game?
Where is the sprite editor
@VavaDragons
9 ай бұрын
yes where is it
@nwoooyz
28 күн бұрын
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!
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.
muy buen viedo pero, solo lo necesito en español saludos
Classic
Title : " In 5 mins" Video : "6 mins" Jokes aside, very nice tutorial
4:28
Guys under the video it should say 'Subscribed' Not 'Subscribe'
Doesn’t work. I click with my mouse and it still won’t jump. Waste of time
i love u
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.
First
I have dislike option, this video got 0 dislikes like it should
go slow you are not telling how to do few steps
wasted my time
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
6 ай бұрын
you got to set the instance to static " public static Score scoreInstance; "
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
Ай бұрын
have you installed InputSystem in package manager?
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.
@OtisdubYT
2 ай бұрын
...you do realize you're the bottom comment, right? (no hate, but I'm not joking.)
@Matt12mjc
2 ай бұрын
@@OtisdubYT 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”.
@OtisdubYT
2 ай бұрын
@@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
28 күн бұрын
I've been doing this for 40 minutes and i'm only 1:30 through the video, it's crazy