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

This video will show you how to bring the rain from the Day 3 Dynamic Setting project into this project. If you have not completed the Dynamic Setting: If you have already completed the Day 3 project, continue watching this video.

To make it rain in your story, use the rain from the Dynamic Setting project. Open a new tab. In that tab, open the Dynamic Setting project.

It probably requires you going to Scratch and looking in "My Stuff."

To take the rain from that project, put it in your backpack. Click on the triangle at the bottom of your screen to open the tab labelled “backpack.” Then, drag the rain from the sprites area into the backpack. Close that tab, and go back to the tab for today’s project. You need to refresh your browser page for it to show up in your Backpack here.

When you open the backpack tab now, you should see the rain sprite. Drag it into the sprites area of your project.

The rain starts as soon as the green flag is clicked. You may want it that way, but in this example, it will be raining in the woods after the character walks through the secret door. To change when the rain starts, remove the “when green flag is clicked” block, and replace it with “when backdrop switches to.” In this example, the rain will start when the backdrop switches to “woods.”

To hide the rain initially, add a “when the backdrop switches to brickwall” block, and place a “hide” block after it.

Add a show block to the “when backdrop switches to woods” stack so that the rain appears after the character goes through the door. Test this. When the green flag is clicked, there is no rain. After you type “yes,” the character should go through the secret door, and the rain should start.

You may notice that moving the rain changed its size. It may no longer fill the whole screen.You can try changing the size of the sprite with the with the “set size to” block. If that doesn’t work, try copying the sprite by right clicking on it, and clicking “duplicate.”

This example sets the x value to negative 160 in one sprite, and to +160 in the other.

This made it look like the whole screen was raining. This example also moved the y value from 100 to negative 100, making the rain fall from the top to the bottom of the screen.

Try playing with different values until you find what works for your story.

Erweiterung auswählen
Die Figur gehen lassen
Die Figur sich auf die Tür zu oder von ihr wegbewegen lassen
Ein Passwort hinzufügen
Ein geheimes Passwort programmieren, das der Nutzer eingeben muss, um durch die Geheimtür gehen zu können
Regen programmieren
Das Lager in Scratch dazu nutzen, um den Regen aus dem Projekt von Aktivität 3 in dieses Projekt einzufügen
Die Geheimtür verstecken (Herausforderung)
Die Hauptfigur so programmieren, dass der Nutzer sie mit den Pfeiltasten steuern und bewegen kann, um die Geheimtür zu finden
Eine neue Figur hinzufügen (Herausforderung)
Weitere Figuren zu eurer Geschichte hinzufügen
Eine neue Szene hinzufügen (Herausforderung)
Eine neue Szene hinzufügen und ein paar Ideen für euer Projekt erhalten
arrow_backward Zurück
Weiter arrow_forward
Anweisungen
  1. Wählt eine der Erweiterungen aus und schaut euch das Video an, um zu sehen, wie sie programmiert wird.
  2. Wenn ihr mit einer Erweiterung fertig seid, probiert eine andere aus!