Find the Scratch project page here.
Windy Day is a project for beginner game builders. In this project we’ll include the basic game concept of setting a challenge to overcome. We’ll use events to move sprites and sensing to control the outcome of the game. We’ll also use a simple technique for horizontal scrolling.
Start with a backdrop. We did a blue sky with green grass.
A simple way to simulate horizontal scrolling is to create sprites which will move left across the screen. When they reach the left border, they’ll jump to the right border of the screen and then resume moving left. We used 3 trees, spaced and sized slightly differently.
Now we need to add a sprite that we’ll be controlling. We selected the flying Scratch cat.
We want the cat to move up & down when those arrow keys are pressed.
Next we need to add our flying objects that we want to dodge. We’re going to do this as one sprite with multiple costumes so that it looks like we have multiple flying objects. We used a donut with a few motion lines behind it to give the impression it’s being carried in the wind.
We want our flying object to travel across the screen at a random height, and once it hits the left side of the screen, it should start over again from the right.
Now to add a challenge! We want the game to react if the object crashes into our cat. In the code for our cat sprite:
Now for a fun part– let’s add a few more flying objects as costumes for our original flying object. Here are a few that the kids came up with:
Add the code for costume switching to the flying object.
Finally, we need a way to win the game. If your cat can last for 30 seconds without touching any flying objects, you win!
Additional challenges to adjust the difficulty of the game:
– Change the speed that the cat can move up & down
– Change the speed of the flying objects moving across the screen
– Add another flying object so that the cat is dodging more than one at a time.
Have fun and share your creations!
Leave a Reply