Making the Bird Moveįirstly, we will first set up the bird sprite as soon as the game begins. Now, let’s come back to our main bird sprite. Writing the Script for the Flappy Bird’s Bird Sprite You can name the game or add the title sprite according to your choice. This is an optional sprite to make the stage look better. The next sprite if the game over sprite that should appear as soon as our bird touches any of the pipe sprites. You may notice that we have used numbers as costumes, you can simply display the score in the variable too. We have used two numbers of sprites to show the score in two-digits. As soon as the bird crosses the hurdle of pipe the score should increase by changing the next costume. The next two sprites show the score of the player. As soon as the game begins, they should begin to move in continuously by changing the Y position randomly. On clicking the green flag, these sprites should be hidden. Upon clicking the start button, the game starts and the pipe hurdles start moving. The next two sprites are for the floor and the scripts written in them make them move continuously. This sprite is the hero of our game, we will discuss the scripts into this sprite in the later part of the project. With the start of the game, the score is set to 0. The logo appears every time we start the game by clicking on the green flag. We will briefly understand them and go back to writing our main script.
![flappy bird scratch code flappy bird scratch code](https://code-projects.org/wp-content/uploads/2020/06/2-1.png)
Once you open the script, you will notice a lot of sprites and their scripts. Choose the File option to open up the downloaded script.Once you have downloaded the script, go to PictoBlox.You can download the script from the link given here.
![flappy bird scratch code flappy bird scratch code](https://i.ytimg.com/vi/vHMMFFDTAug/maxresdefault.jpg)
We have already written the script to set up the stage and project. In this video, we will mainly focus on writing the script to control the bird with the nose. Setting Up the Stage for the Flappy Bird Game Choose the Human Body Detection Extension and wait for a little while till the models get loaded.Click on the board button and select evive.The latest version of PictoBlox, which you can download from here.You’ll need the following things to make the make Flappy Bird Game: We’re going to make our version of the flappy bird game using PictoBlox’s Human Body Detection extension in which we will control the bird using our nose. That is exactly what we are going to make in this video. I’m sure many of you might be familiar with Flappy Birds – if not the game, then at least the viral Instagram filter in which you control the bird using your nose.