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.
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
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.
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
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.
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
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 :)
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.
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
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
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.
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?
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?
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 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.
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?)
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!
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!
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!!
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.
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?
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!
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.
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.
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 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”.
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.
Omg ty i was searching for that
I don't think this is a beginners tutorial
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
Thanks for that, I've fixed the link!
Really great refresher after not having used Unity for a couple years. Thanks!
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.
why so much love for scriptable object event? just use delegates and or actions for lambdas?
A complete beginner wouldn't be able to follow this
exactly this video is just going through one of my ears and out the other its like he's talking in 2x speed
just look up the basics
watch his angry birds video, that will teach the basics for beginners
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
ummmm, i did fine, first game
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.
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
This is what i have been looking for! Thanks!
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 :)
i have a problem with the object (the bird) almost not going up but down it works like shown
Amazing content! Thank you so much
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.
OMG THIS IS SOO GOOD!
Strange, I wrote the exact script for pipes "MovePipe", added box collider, but they just ain't moving, and there's no errors also
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:54 the code is not really working it says missing _pipe game object and stuff
Thank you for video!
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
i am facing troubles how do i find an answer?
This should be an official speedrun.
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.
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?
good and quick but i wouldnt recommend it to someone whos never used unity
my bird barely goes up
I started unity 2 weeks ago and at least about unity i know a lot already code pretty much 0
I mean like Disney movies
Completely worth subscribing for this video alone.
Brilliantly done!
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?
Did you set their position properly in the prefab?
@@cocolennon_ yes im just gonna try a different approach
thank you very much!
Good job on doing tutorial!
Everything except from the scoring system is working for me, no errors, just no scoring is happening when i go through the pipes :(
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
So when im writing the "PipeIncreaseScore" code it keeps on saying error CS0122. any way to fix it?
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.
Did you get all 15 done?
@@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.
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?)
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!
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
Thank you
nice video dude
how am I supposed to bring the sprites form the sprite editor to the project
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.
I don't understand the height range script. Why didn't you have to put coordinates to spawn the pipes
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 did you learn to code????
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!!
how to drag the files in to the project
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.
It's Visual Studio, not VSCode.
Really cool!
where's the link
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?
If anyone runs into this issue make sure you press Apply on the pipes prefab overrides
Title : " In 5 mins"
Video : "6 mins"
Jokes aside, very nice tutorial
Awesome video!
which extensions do you use on vscode to program c# and for unity?
or isn't this vscode, perhaps?
@@danthon1267 it is vs community you just have to check development in unity when installing vs community
@@danthon1267 he's using vsenterprice 2022
Impressive.
Can I get this project open source please?
i don't find the sprite button,can u please help?thanks
It's becouse we don't care future of the planet etc just do basic things doing nothing watching girls
Doesn’t work. I click with my mouse and it still won’t jump. Waste of time
How do you get outlines on the text
Yeeeee asking for myself too :)
wait what extensions do u use xd
dude, its apps, not extensions
How to make starring ui
i hate here only that so video is speed up so i cant even try wrote script but all work very great :)
this was best
Norsk Game?
Classic
It took me 2 hours, not 5 mins
I stil ldie when i enter the score collision between pipes
be sure to mark down isTrigger option in the box collider
Where is the sprite editor
yes where is it
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!
Guys under the video it should say
'Subscribed'
Not
'Subscribe'
3:45
i love u
4:28
muy buen viedo pero, solo lo necesito en español saludos
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.
I have dislike option, this video got 0 dislikes like it should
go slow you are not telling how to do few steps
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.
you got to set the instance to static " public static Score scoreInstance; "
First
wasted my time
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
have you installed InputSystem in package manager?
You wrote QUETERNION, it is quaternion hahahaha
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.
...you do realize you're the bottom comment, right? (no hate, but I'm not joking.)
@@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”.
@@Matt12mjc I get that you're trying to tell the truth. BUT, what he means by 5 minutes is a short amount of time.
I've been doing this for 40 minutes and i'm only 1:30 through the video, it's crazy