Skip to content
Transcript

You can program your hero to show off their superpowers.

In this video, you will show off your hero's superpowers with a super stunt - a spin!

First, select your hero sprite.

From the motion menu, drag out a “turn” block.

Click the block.

Your hero starts to spin!

Reset the sprite to its original position by clicking the “point in direction” block in the Motion menu.

Make your hero spin more by selecting the control menu and dragging out a “repeat” block.

Place it around the “turn” block.

Tinker with the values until your hero spins just the way you want.

Next, click the events menu and add a “when key pressed” event to the top of your block stack.

Choose “space” from the drop down menu.

Now press the spacebar to see your hero spin.

Great job!

Once you’ve programmed your hero to spin, consider adding more movement with “MoveYour Hero."

Then, come back to this page to check out more videos! You can try any video you like.

Choose an Add-On

Start here
Move Your Hero

Make your hero move up and down when arrow keys are pressed.

Fly Over Buildings

Program buildings to move across the screen, so your hero appears to fly.

Add Background Music

Set the scene for your hero by adding sound to your project.

Show Off with a Super Spin

Help your hero do great things with this spinning move.

Keep Score

Create a game by programming your hero to collect objects.

Support Your Hero

Add another character to help your hero.

Draw Your Own Hero

Use the Paint Editor in Scratch to draw your own hero.

Instructions

Para hacer esta actividad en español, haz clic aquí.

 Students

  1. Watch the introduction video.
  2. Open the starter project link and choose a sprite for your hero.
  3. Return to this page and watch more videos below.

Teachers

  1. Visit the Hour of Code teacher resource page for instructions.