Side-Scrolling Scratch Lesson Step 3: Make It Fly! In the first two steps, we learned how to (quite literally!) move mountains and create a scrolling background! In this step, we’re going to learn how to get the spaceship to move, but remember, the spaceship only moves up and down – the illusion of it moving sideways is created by our. I am making my first game, and I don't know how to make lives for the character. I want there to be 10 lives, so it is probably better if it says the lives with a number, not hearts. I want it to be when Gary touches a ghost, he loses a life. I would also like there to be a timer, so it shows how much time has gone by before Gary loses all his. Jul 17, 2014 Make a variable called lives, and when the bomb drops on you, you can have a script that senses that when the sprite is touching a bomb, then decrease the lives by -1. Feb 02, 2016 Scratch Maze Game 12 Losing A Life In this video we will declare a new variable called 'Lives' and set its initial value to 3. We will then add code to our game to ensure that if our playable.
- How To Make 3 Lives On Scratch Online
- How To Make 3 Lives On Scratch Free
- How To Make 3 Lives On Scratch Game
![How to make 3 lives on scratch youtube How to make 3 lives on scratch youtube](/uploads/1/2/6/0/126061252/381336698.png)
How to make a timer in Scratch using a variable. Sean McManus, author of Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps, shows you how to add a timer to your Scratch game. One way to add an element of challenge to even the simplest of games is to add a time limit.
This blog post will guide you through the main steps needed to create a breakout game in scratch.
Step 1: The Paddle
You will first need to delete the cat sprite that comes per default when you create a new Scratch project.
You will then create a new sprite and use the Paddle sprite from the scratch library.
You will then need to add the code required to control the paddle using both the left and right arrow keys:
Step 2: The Bouncing Ball
Add a new Ball sprite.
You can resize this sprite to make it smaller:
Now let’s add the code to make this ball bounce around the edges of the screen:
Step 3: Bouncing off the Paddle
We need to add some code to the ball sprite to make it bounce when it hits the paddle.
Step 4: Adding a score variable
Let’s make a new variable called score. We will use this variable to score 1 point per brick we break. To do so you will need to go to the variable section:
Then you will click on the “Make a Variable button”.
Give a name to your variable: score and tick the option “For all sprites”
Make sure your variable is visible (Tick the checkbox next to the variable itself):
Let’s add the following code (for the paddle sprite) to initialise our score to 0 when the game starts:
Step 5: Adding bricks
We will now add a brick sprite:
Let’s rename this sprite to brick and resize it to make it smaller (e.g. size: 50).
Now let’s add the code to make the brick disappear when the ball hits it. We will also increment (add 1 point) our score when this happens:
How To Make 3 Lives On Scratch Online
We can now duplicate our sprites at least 10 times to create the brick wall:
Step 6: Losing lives
Let’s create a new variable called Number Of Lives, available for all sprites.
Let’s update the code of the paddle sprite to initialise our variable to 3 lives when the game start:
Now let’s add a new line sprite:
Let’s make sure we position sprite just underneath the paddle:
Let’s add some code to the ball sprite that will check if the ball hits this “life line” and if it does the player will lose a life and the ball will bounce back.
How To Make 3 Lives On Scratch Free
Step 7: Game Over Screen
When the number of lives reaches 0, the game will stop and display a Game Over Screen.
So let’s first create a new Game Over backdrop:
Then let’s add some code on the ball sprite:
Other challenges you may enjoy...
How To Make 3 Lives On Scratch Game
Tagged with: Scratch