La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

Stopwatch Cards Stopwatch Cards

Presentaciones similares


Presentación del tema: "Stopwatch Cards Stopwatch Cards"— Transcripción de la presentación:

1 Stopwatch Cards Stopwatch Cards
Crear una variable Iniciar el reloj Stop and Reset Pónte en movimiento Time the Sprite Background Effects

2 Agrega un valor variable en la pantalla.
Crear una variable Crear una variable PREPÁRATE PREPÁRATE Agrega un valor variable en la pantalla. Choose in the Blocks Palette. Add a checkmark to your variable to make it appear on the screen. AGREGA ESTE CÓDIGO AGREGA ESTE CÓDIGO PRUÉBALO PRUÉBALO Haz clic en el botón A para avanzar el número en la pantalla. 1

3 Add a loop to increase the time on the clock.
Iniciar el reloj Iniciar el reloj PREPÁRATE PREPÁRATE Add a loop to increase the time on the clock. A stopwatch should advance each second. A forever loop will increase the time as long as the program is running. AGREGA ESTE CÓDIGO EL TIEMPO se incrementará en 1 cada segundo. PRUÉBALO Test your timer against a clock. ¿El tiempo cambia cada segundo? 2

4 Control your stopwatch with the A and B buttons.
Stop and Reset Stop and Reset PREPÁRATE PREPÁRATE Control your stopwatch with the A and B buttons. Add a RESET and a STOP code. AGREGA ESTE CÓDIGO EL TIEMPO volverá a 0 cada vez que el botón A se presione. A B PRUÉBALO Haz clic en cada botón del micro:bit y vé cómo se afecta el tiempo en la pantalla. CHALLENGE: Can you change your stopwatch into a countdown clock? 3

5 Make your sprite move as your stopwatch advances!
Pónte en movimiento Pónte en movimiento PREPÁRATE PREPÁRATE Make your sprite move as your stopwatch advances! Click the tab. Make sure your sprite has more than one costume. Choose a sprite. AGREGA ESTE CÓDIGO PRUÉBALO What happens when your sprite reaches the end of the screen? Add these codes into the loop to fix the problem! 4

6 Time the Sprite Time the Sprite PREPÁRATE PREPÁRATE
Let Scratch decide how many seconds your sprite will move. Use your stopwatch to figure it out. Start your sprite with the A button. This will make the stopwatch and the sprite move at the same time. AGREGA ESTE CÓDIGO Let Scratch decide how long the code will run. Change the number to affect the sprite’s speed. PRUÉBALO How long did the sprite move? Congela el reloj presionando el botón B en el micro:bit cuando el sprite se detiene. 5

7 Use graphic effects to alter your background as the program runs.
Background Effects Background Effects PREPÁRATE PREPÁRATE Use graphic effects to alter your background as the program runs. Choose a background. Click the Backdrops tab. AGREGA ESTE CÓDIGO PRUÉBALO PRUÉBALO Experiment with other background effects. CHALLENGE: Reset your graphic effect. ¿Dónde debe ir este bloque en tu código? 6


Descargar ppt "Stopwatch Cards Stopwatch Cards"

Presentaciones similares


Anuncios Google