There is something self-rewarding about winning a game that packs a mean challenge - it reminds us that claiming a victory isn’t a walk in the park. From a player’s perspective, conquering difficulties and getting through tough quests is exciting, and legendary creators of today’s most popular games know that.
From Super Mario to Minecraft, we are drawn to games that allow us to explore virtual worlds, but only if we overcome its’ obstacles of many sorts. Those ‘obstacles’ are often referred to as ‘levels’, and we can’t seem to get enough of them.
So today, we'll walk you through a few simple yet powerful concepts to teach you how to make a game with levels on Scratch. Together we'll create a fun Balloon-Pop challenge using Scratch coding. Once you've conquered this tutorial, you'll be equipped with the skills to make even more level games such as Tetris, Super Mario 64, and more!
What’s a game level in Scratch?
A game level in Scratch represents a new challenge and a new space for a player to explore with its own goals. It can also be thought of as a game within a game, but with a slightly greater hitch. Those who get past a challenge get to move on to the next level, and so on and so forth until the very last level is met.
Why should I add game levels in Scratch?
You should add game levels in Scratch because game levels keep us going. The higher the level the more power we feel. The levels remind us of our endurance, persistence, and the experience gained with each new challenge. The higher the level, the greater the adrenaline, and that inspires us to push ourselves to overcome more.
How to make a game with levels on Scratch
The goal for this game is to pop at least 10 fast moving balloons. If the player accomplishes the goal, then the player will move on to the next level which will make it the balloons a bit harder to ‘pop’.
1. Score and Move Up
Let’s get a Balloon Sprite and program it to move at a challenging speed towards the top of the screen. Because of its unpredictable start point, a player must pay close attention and act quickly in order to meet the challenge.
2. Count Points and Move Up
For every click on the Balloon Sprite, the player will score 1 point. Remember, all it takes is 5 points and the player will be granted to play on to the next level.
3. Change The Backdrop
Our if/then control block will check the score and based on the logic, it will switch the backdrop to announce the next level.
4. Next Level
In the next level, the game gets a tad bit challenging. However, from a programming perspective, all there is to do is add a timeLeft variable and check against two things: time and clicks.
We’ll speed up the way the balloon moves up to the top to make it more challenging if the player is still under 10 seconds in the game and above 4 points, otherwise, we’ll have the balloons move at a slower pace. We’ll also add a Sprite Robot to announce the levels as well as when the game is over:
5. Control The Backdrop Display
Next, we’ll use the backdrop blocks to control the display of the two backdrops. The first level will have the Rays backdrop, but the second level will switch to Circles:
6. Put The Sprite To Work
And finally, we’ll put our Sprite Robot to work. It’s only job is to keep track of the time left as well as the clicks to announce one of the three: game has ended; you [player] ran out of time/lost; next level.
You did it!
Types of Scratch games that have levels
One of the most popular games with levels on Scratch is The Maze Game. The Maze Game is fairly easy to program as well as to play, and the maze seems to get more challenging with each new level.
Apart from the Maze Game, Super Mario 64 also offers levels as a Scratch built game. Tetris is another fun game with levels that’s often played on Scratch followed up by its runner up game, Snake.
Now you know how to make a game with levels in Scratch
As the time goes by, the gaming world changes as video games evolve and we grow out of old and into new virtual realities. However, one thing stays the same: game levels providing a fun challenge. We simply can’t get enough of them!
And now that you know how to make a simple game a little more challenging, check out our live virtual advanced Scratch courses, where you can create games with levels and have fun while learning how to code. Up next, learn how to make a maze in Scratch to apply your new level skills.
Written by Sandra Dizdarevic, a Create & Learn instructor with 6 years of experience teaching STEM to children in the 3rd through 11th grade. She has an Undergraduate as well as a Masters Degree in Management Information Systems from UNO.