Loops and Movement
Mini challenges
Broadcast and Variables
Challenge
100

Code a sprite to move 10 steps over and over forever. What loop would you use?

forever loop with move 10 steps inside

100

Make a sprite glide to the top-right corner (x: 240, y: 180) in 1 second.

glide 1 secs to x: 240 y: 180

100

You want to tell another sprite to start dancing when the game starts. What block do you use?

broadcast [Dance] and other sprite uses when I receive [Dance]

100

Make your sprite do a simple dance using at least two different costumes and a loop.

Use next costume inside a repeat or forever loop, maybe with a wait block between.

200

Make a sprite spin in a circle nonstop. What block would help?

forever → turn 15 degrees

200

Code a sprite to play a sound only if the space key is pressed.

when space key pressed → play sound [sound]

200

Code a simple score counter that goes up by 1 when you touch a star.

Use a variable (Score), if <touching Star?> then change Score by 1

200

Create a “keep clicking” game: when you click the sprite, the score goes up.

when this sprite clicked → change score by 1

300

You want the sprite to jump up and come back down again. How can you do this with blocks?

change y by 50 then change y by -50, with wait blocks in between

300

Make a sprite say the name typed into an “answer” block after asking.

ask "What’s your name?" → say (join "Hi " answer)

300

You want one sprite to disappear when another sprite is clicked. How do you do that?




Sprite 1: when this sprite clicked → broadcast [Hide]; Sprite 2: when I receive [Hide] → hide



300

Create a sprite that moves in a square path using movement and turning blocks.

repeat 4 → move 100 steps → turn 90 degrees

400

A sprite should flap its wings (change costume) every time it moves. What blocks would help?

Inside a forever loop: next costume + move steps

400

Code a sprite to move randomly when clicked.

hen this sprite clicked → go to x: pick random -240 to 240 y: pick random -180 to 180

400

How do you make a variable called “Points” show on screen but not let players change it?

Answer: Make a variable, check “for all sprites,” then show it with show variable



400

Make a sprite hide for 5 seconds when it touches a specific object, then show again.

if <touching Object?> then hide → wait 5 seconds → show

500

Code a sprite to bounce left and right forever. What’s one way to do this?

forever → move 10 steps, then if on edge, bounce

500

Build a sprite that chases the mouse pointer forever.

forever → point towards mouse-pointer → move 10 steps

500

Code two sprites that switch back and forth when the space key is pressed (one hides, the other shows).

when space key pressed → broadcast “Switch”; both sprites use when I receive [Switch] with hide/show logic

500

Build a simple chase game: one sprite chases the player-controlled sprite, and if it touches it, it says “Got you!”

se forever → point towards Player → move steps, and add if <touching Player> then say "Got you!"