Skip to content

Please update your browser

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

Transcript

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.

Scegli un’estensione
Risistema gli accessori
Personalizza l'aspetto di ciascun luogo.
Cucù
Rendi il gioco più impegnativo mostrando l'oggetto solo se il personaggio si trova nelle vicinanze.
Codifica una conclusione
Aggiungi alcune slide per concludere la storia quando il giocatore vince.
Oggetti musicali
Aggiungi elementi interattivi che emettono un suono quando il personaggio ci cammina sopra.
Ostacoli ostruenti
Rendi le mappe più realistiche, impedendo al personaggio di imbattersi in ostacoli come alberi o edifici.
Nascondino
Nascondi l'oggetto in un luogo casuale ogni volta.
arrow_backward Indietro
Avanti arrow_forward