In this add on, you'll make the here shoota laser to zap the bugs. First, click paint new spriteand draw a laser for your game. This example draws asmall 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 thelaser shoot out once it's at the hero.
Snap and repeat until loop from the control menu belowthe Go to block. The laser will repeat movingforward until it touches the edge. From sensing, drag atouching block into the loops condition space and selectedge. Then from Motion place a change X block insidethe loop. Click to test. The laser shoots across thestage, but it stuck once it gets to the edge. To make itdisappear, add a hide block.
That means you need a showblock in the beginning to make it show 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 repeatand hold loop. Click and see what happens.
That's pretty cool. Now get rid of all these stampswhen 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 instructionsabout 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.