Welcome to activity 7 of Google CS First Games. In this activity, you’ll learn how to usestorytelling in video game design while you build a Role Playing Game, or RPG.
This activity will also introduce a few new events.
An event is something that tells code to run. In previous activities, you may have useda keypress event to run code that moved a sprite. You may have also used a “when flagclicked” event to run code at the start of your program.
This activity uses an event called “broadcast.” Broadcast is a special type of event. It hastwo parts: a “broadcast” block that sends a message and a “when I receive” blockthat receives that message and runs code when it does.
Broadcast is useful in video game design because it helps you to synchronize, or to make manyactions happen at the same time in a program. For instance, if a character were to falloff a cliff, you could broadcast a message called “fall.” Then, you could createcode that would run when that message is broadcast. Maybe the score goes to 0, the timer stops,a sound plays, and “Game Over” text appears. Role Playing Games often take place in multiplelocations. In this activity, you’ll use broadcast to control when sprites show andhide in each location. Check it out! This game has a sprite the user controls withthe keyboard. You’ll build a story for your RPG based on the sprite searching for somethingthrough several locations. To get started, choose a starter project nextto this video. Each starter project has a different main character sprite.
Then, click remix and sign in using the information from your club passport.
This starter project already contains a few items you’ll use to create your game. Ithas a character sprite, which is programmed to move and change costumes *if* an arrowkey is pressed.
The project also has three entrance sprites, which in later videos you’ll program tochange the backdrop if the sprite touches them.
Finally, it includes an object sprite, which will be the basis for the plot for your RPG.
The player sprite will need to find this object in one of the locations.
Once you’ve selected a starter project, remixed it, signed in, and chosen one spriteas the main character click the green arrow to move on to the next video. That’s whereyou’ll start customizing and designing your RPG.