Have you played Flappy Bird? You are going to make a game that works quite a bit like Flappy Bird but is NOT Flappy Bird. Why NOT? Because if you make a game that looks and works like Flappy Bird and you CALL it Flappy Bird, then the guy who CREATED Flappy Bird would be displeased. Plus, it is actually AGAINST THE LAW!
- Oct 10, 2014 Each time you change lives by -1 add a check whether lives is 0. Broadcasts are really useful for this. Just broadcast “lose life” and then in the when I receive “lose life” do the subtraction and then the check. Saves lots of code. You've left out the wait 3 seconds after touching robot3 which is the 7000 lives lost I assume.
- This tutorial shows you how to make a 'Score' variable for a game. Please note that it is slightly different to how you make a cloud score. First, make a variable named 'Score'. How the game works defines which find of script you will use. Color Sensing If you want to detect when a sprite touching a particular color, use.
So, instead, you will make a game called Flapping Bat.
Alternatively you can just carry on working in the same project you already created. Here's how you do each of these (you'll only need to do one). Duplicating Your Own Project. Open Scratch and go to the project you want to duplicate. Make sure you've clicked the See Inside button so you can see the workings of the project.
Create online project
-
Go to Scratch’s website and click the Create button.
-
Change the name from Untitled to Flapping Bat.
While logged in, Scratch will automatically save your project while you work.
Create offline project
-
Open the Scratch 2 Offline Editor on your computer.
-
Select File→Save As and type Flapping Bat.
How Do I Live Without You Youtube
Delete the cat
Every time you create a new Scratch project, it will include one sprite, the Scratch mascot: Scratch Cat.
You can delete the cat (or any other sprite) by holding the Shift key on your keyboard while clicking it directly. A small menu will appear with the option to delete whatever you Shift-clicked. You will be doing a lot of Shift-clicking to save you time while working on Scratch projects.
So go ahead . . . Delete that smiling Scratch cat!
If you are used to right-clicking with a mouse or trackpad, you may use that technique as an alternative to Shift-clicking.
Choose Player sprite
A sprite is any graphic element in a Scratch project other than the Stage, which represents the background. For this game, you will create three sprites: Player, Ground, and Pipe.
-
Look for the New Sprite area beneath the Stage and click the first icon. Choose Sprite from Library.
-
Select the sprite named Bat2 and then click OK.
-
Shift-click the Bat2 sprite and choose Info.
-
Change the name from Bat2 to Player because, in your game, the player will control the bat sprite.
-
Click the Back button (white triangle on blue circle) to close the Info window.
Paint Ground sprite
-
In the New Sprite area, click the second icon: Paint New Sprite.
-
Shift-click the new sprite, choose Info, and change the name to Ground.
-
Click the Costumes tab.
-
Click the Rectangle tool on the Paint Editor canvas beneath the Costumes tab.
-
Click the Solid rectangle option.
-
Click a green color swatch.
-
Click near the bottom-left corner of the Paint Editor canvas and then drag up and to the right side until you have a rectangle all the way across the bottom.
If the ground sprite appears off-center on the Stage, click and drag it into place.
Paint Pipe sprite
The goal of your game is to flap the bat’s wings and fly through holes between two pipes. You will use a cool programming trick so that you only need one Pipe sprite.
-
Click the Paint New Sprite icon.
-
Shift-click the sprite, choose Info, and change the name to Pipe.
-
Click the Costumes tab.
-
Click the Rectangle tool on the Paint Editor canvas beneath the Costumes tab.
-
Click the Solid rectangle option.
-
Click a gray color swatch.
-
Click and drag across the middle of the Paint Editor canvas to draw a vertical pipe.
How To Make Lives On Scratch
To make a hole for the bat to fly through, click the Select tool, click and drag across the middle of the pipe, and press the Delete or Backspace key on your keyboard. (Don’t worry if your bat is too big; you will fix that soon.)
Good work! Now you have all three sprites you need to make your game. What comes next? That white background is a bit plain. Here’s a quick way to make a realistic sky.
Paint sky gradient on the Stage
The term gradient may be new to you. Scratch includes three types of gradients, which allow you to fade between two colors. Part of what makes a sky look realistic is when it appears brighter toward the horizon and darker at the top of your game screen.
-
Click the Stage button.
-
Click the Backdrops tab.
-
Select the Fill with Color tool.
-
Click the Horizontal Gradient button.
-
Select the white color swatch.
-
Click the Swap Colors button.
-
Select a light blue color swatch.
-
Click anywhere to fill the Paint Editor canvas with the color gradient.
Doesn’t the sky look more realistic now? Gradients can be used for all sorts of effects (like making something look metallic). (Did somebody say, “Vector Robots”?)