Please note: This theme has not been updated to reflect Scratch 3.0. Visit this help article for more info.
Transcript

In this add on, you'll make the here shoot a laser to zap the bugs. First, click paint new sprite and draw a laser for your game. This example draws a small filled in red rectangle. Program the laser's motion.

It should start at the hero then shoot forward.

So the first block is the Go to block.

The one with the drop down. Drag it out.

Then select hero from the drop down. Make the laser shoot out once it's at the hero.

Snap and repeat until loop from the control menu below the Go to block. The laser will repeat moving forward until it touches the edge. From sensing, drag a touching block into the loops condition space and select edge. Then from Motion place a change X block inside the loop. Click to test. The laser shoots across the stage, but it stuck once it gets to the edge. To make it disappear, add a hide block.

That means you need a show block in the beginning to make it show again.

Test again.

That looks more like a laser.

Finally you make your laser look even fancier.

From the Pen menu, drag a stamp block into the repeat and hold loop. Click and see what happens.

That's pretty cool. Now get rid of all these stamps when you hide the laser. Drag a clear block below the loop.

Add an event to the top. The one space key pressed event, works nicely.

Great job! Add detailed instructions about how to make your project work in the Project Page.

Now it's your turn. Paint a laser sprite.

Make it go to the hero. Shoot it with the repeat until loop.

Show, hide, stamp and clear to get all the visuals right.

Choose an Add-On

Game Over

Give your hero a set number of lives.

Laser

Program your hero to shoot lasers to vanquish the evil bugs.

Power-up

Add a power pellet to make the hero jump higher.

Falling Rocks

Add a falling obstacle to your game.

Platforms

The terrain of your game will change to move up and down.

Follower Friend

Add a cute buddy who follows your hero around.

Instructions

  1. Choose an add-on, and click "watch" to learn how to customize your project.
  2. When you finish, come back to the add-ons screen and try another add-on!