Lets Create Flappy Bird! #13 Bug Fixing - Godot Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this tutorial we will do some bug fixing we will start by fixing the errors that we have here well they're not errors but they're warnings because they're yellow this first one the argument delta is never used in the function physics process this one is easy to fix we just need to add a prefix before delta and that one's gone the next one the function reload current scene returns a value well we're not gonna use this return value so there's no point storing it in a variable so let's just ignore this one cool now if we run the game we're not going to get any more warnings the next thing i want to look at is i realized when we die and if we die on a pipe we still score but we don't want that let me just show you real quick [Music] see i died and my score should be one but a score signal was emitted when it shouldn't so let's go inside the obstacle scene and in here what happens is we score once the player exits the score area but if we die on top of it we can't exit from the right side but we still exit from the bottom because it's very short the fix is very easy you just need to select the collision shape 2d of the score area and make it taller and this much should be fine now if you play and we die on top of a pipe we didn't score so yeah that's the fix okay cool the next thing i want to look at is well there are some impossible situations in the game right now sometimes we'll get a pipe that's very low near the bottom and the next pipe is very high but our bird right now can't flap high enough in a single flap to reach that so we need to increase the flap force of the player and at the same time sometimes we get a pipe that's very high and the next pipe is very low and the player can't really fall fast enough because the gravity is isn't strong enough so let's first fix the gravity because the gravity is going to affect the flap force and we don't want to change flat force first because we're going to have to do some adjustments if we change it first let's look at the start method we're setting the gravity scale here and let's just set it to 10. now if you play the game you're gonna realize that you can't nearly flap as high enough and we fall much faster which is what we want let me just turn down the volume a bit okay now we want to set the flap force to something higher like 340. now if you play you can flap much higher in a single flap and let's see if you can get scenario like this see it was very easy for me to reach that and like this one before we we couldn't have done the sequence that i just got okay cool you got that and the next thing i want to look at is the pipes the the walls their collision shape is too short because what will happen is if we start flapping and at the start and we flap enough times we can go over the obstacle and just keep going like that let me show you so i'm just gonna flap like crazy at the start and as you can see i'm over the game basically just scrolling through we don't want this either so this is also very easy to fix we just need to go inside the wall get the collision shape and make it much taller like this let's position it like it used to be okay this should fix it and inside the obstacle you can see that it's a much bigger obstacle to go over let's test this i'm gonna start flapping like crazy i still die nice the final thing i want to look at is isn't necessarily a problem but i just think that right now the player when it's falling down isn't rotating fast enough so i'd like the player to reach the maximum rotation faster and that's why i'm gonna set its angular velocity once it's start falling to five instead of three and this way it's gonna look much more like the original game awesome we did some bug fixing and some improvements to our game in this episode our game is basically done like i said we're not gonna add anything else and in the next episode i'm gonna talk about what you might wanna do next and my future plans thank you very much for watching and i will see you in the next one [Music]
Info
Channel: Kaan Alpar
Views: 214
Rating: undefined out of 5
Keywords: godot, godot tutorial, kaan alpar, learn godot, godot 2d, indie game, indie game development, game development, game dev, gamedev, game developer, learn game development, learn gamedev, flappy bird, how to make flappy bird, flappy bird tutorial, flappy bird unity, godot game engine, godot engine, flappy bird godot, godot mobile game, godot 2d game, godot engine tutorial
Id: QQ2Wlxh5shU
Channel Id: undefined
Length: 6min 40sec (400 seconds)
Published: Fri Oct 16 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.