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 Code a Conclusion


In this add-on, you’ll add final slides to your RPG that will appear after the user finds the hidden object. This video will show you how to get started. Then, it will be up to you to use what you’ve learned so far to complete the code.

First, select the “narrative” sprite, and add more costumes. Duplicate the opening slides and change the text, or paint new ones from scratch. Add some text to end your RPG.

Then, return to the scripts tab. Add some code to make the sprite show, go to front, then cycle through the costumes you just created. Click this stack to make sure it works. Great!

Make this code stack run when the game ends. Place a “when I receive” block on top, and name the message “game over.” To make the stack run, place a “broadcast” block at the place in the code when the game ends. The game ends when the sprite touches the object. Find the place in the code where this happens, and place the “broadcast” block there. If you added a “say” block earlier to tell the user that they won, remove it now so it doesn’t play over the final slides. Now, it’s your turn!

Add some closing slides to end your RPG. Program the “Narrative” sprite to cycle through the ending slides. Use “broadcast” blocks to make the code run when the character finds the object.

Choose an Add-On
Rearranging Furniture
Customize the look of each location.
Make the game more challenging by showing the object only if the character is nearby.
Code a Conclusion
Add some slides to end the story when the player wins.
Musical Objects
Add some interactive items that make sound when the character walks over them
Obstacle Obstruction
Make the maps more realistic by preventing the character from running into obstacles, like trees or buildings.
Hide and Seek
Hide the object in a random location each time.
arrow_backward Back
Next arrow_forward