

Or in other words, the player will always see the background. Now that the background is a child of the camera, it will always go where the camera goes. Now, in the Hierarchy view, drag the "background" item into the Main Camera, so that the background becomes a child of the Main Camera: We will use this value for all our textures, because the Bird will be 16 x 16 pixels, which should end up being 1 unit in the game world.Īlright so let's add the background to the game world by dragging it from the Project Area into Hierarchy: Note: a Pixels Per Unit value of 16 means that 16 x 16 pixels will fit into one unit in the game world. Note: right click on the image, select Save As., navigate to the project's Assets folder and save it in a new Sprites folder.Īfter saving it, we can select the background in the Project Area:Īnd then modify the Import Settings in the Inspector: We will begin by drawing a very simple sky background in our drawing tool of choice:

This is normal and merely just a cosmetic issue. Depending on your screen resolution, parts of the scene might be visible that would normally be off-screen on a lower screen resolution. Note: You might need to modify the value for the Size setting as this will adjust the scaling of the play field. Firstly, select the Main Camera in the Hierarchy and then set the Background Color to a light blue (R=198, G=208, B=230) for the sky color and adjust the Size like shown in the following image: The shorter the path, the better.Īfter Unity has created the project and loaded the Editor, it's time to start making our Flappy Bird game. This may cause "path name too long" errors from Unity. Note: Avoid saving projects in any location like your Documents or Desktop. We will name it FlappyBird, select any location like C:\GameDev, select 2D and click Create Project: That doesn't mean you can't use a newer Unity version as they should work fine as well, but keep in mind that older versions may or may not work.

Please adapt this guide to your version of Unity, however to keep things simple, we recommend using the same version as the guide. Our Flappy Bird Tutorial will use Unity 2018.4 LTS installed through the Unity Hub.
#Flappy bird online on scratch free
And if you didn't, don't worry about it too much.įeel free to read our easier Unity Tutorials like Unity 2D Pong Game to get used to the engine before tackling this tutorial.

If you know your way around Unity and heard about GameObjects and Transforms before, then you are ready to go. Our Tutorial does not require any special skills.
#Flappy bird online on scratch how to
Today's tutorial will show you how to make a Flappy Bird clone in just over 40 lines of code, a few sprites and you'll also learn some new knowledge along the way.Īs usual, everything will be explained as easy as possible so everyone can understand it. The game is over if the bird hits any obstacles. The player taps a button to make the bird flap its wings, causing it to fly upwards. The game play is very simple: a bird is supposed to fly horizontally between obstacles while avoid them. Flappy Bird was a mobile game released in 2013 and became one of the Apple App Store's most downloaded application in January 2015.
