Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Make the Game Harder

Transcript

Right now, the easiest way to play this game is to hold down the spacebar to make the bird glide up and down. Many side-scrolling games don’t allow the user to hold down a key though, and instead require them to press a key over and over to keep a sprite in flight. This makes for a much more challenging game!

To prevent the player from holding down the spacebar, add a “wait until” block, a “not” block, and a “key space pressed” block to your program.

This block combination reads: Adding this block to the “when space key pressed” event will ensure that the space bar key works once, but can’t be run again until the user stops pressing the spacebar.

Try it out!

Hmm - this looks like it works, but it’s really hard to move the bird up. Try putting something larger in the “change y by” block instead.

Now try it out!

Much better!

Choose an Add-On
play_circle_filled
Make Your Own Music
Add a drum beat and background music to your game.
arrow_forward
play_circle_filled
Add Another Cave Section
Design a new cave sprite with black edges and add it to your game.
arrow_forward
play_circle_filled
Make the Game Harder
Make the player press the spacebar over and over to keep the sprite in flight.
arrow_forward
play_circle_filled
Dangerous Cave Walls
Make the player sprite explode when it touches the walls of the cave.
arrow_forward
play_circle_filled
Add Another Level
Create additional game levels that get faster and harder as the player progresses.
arrow_forward
play_circle_filled
Dive!
Make the sprite dive, or move down faster than it falls.
arrow_forward
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!