A shooter
By the end you will have a ship that fires lasers, a spawner that sends aliens, and explosions when they meet.
What you need
The main pieces work in Simple mode. One tidy-up rule needs Advanced.
| Spaceship | + Add object โ Library โ Spaceship. It slides left and right already. |
|---|---|
| Laser | Laser from the library. It flies straight up by itself. |
| Blob Alien | Blob Alien from the library. Set How it moves to Bouncing ball, Speed 12, Starts moving: Down diagonals. |
| Spawner | + Add object โ New โ Spawner. Makes: Blob Alien. Every (seconds) 1.2. Wander across 280. Tick Starts making things straight away. Name it Alien Maker. |
| Explosion, Score, Lives | Explosion from the library; Score and Lives from New. |
| Sounds | Laser, Explosion, Hit. |

Build it
- Set Gravity pulls to Off (everything floats) in the level settings. Pick the Starry space background picture.
- Put the Spaceship at the bottom and the Alien Maker a little above the top edge. Blobs fall from above the screen.
- Events tab โ + New event โ โจ Keyboard & mouse โ Upon pressing key โ Space.
- In โ Create objects choose Create an object: Laser, X 0, Y โ24, Measured from Spaceship. Play Laser.
- + New event โ Laser โ Collides with another object โ Blob Alien.
- In โ Create objects: Create an object Explosion at X 0, Y 0 from Blob Alien. Then Destroy Blob Alien, Destroy Laser, Add to score 10, play Explosion.
- + New event โ Spaceship โ Collides with another object โ Blob Alien. Do Destroy Blob Alien, Subtract lives 1, Flash (blink) Spaceship 1 second, play Hit.
- + New event โ Laser โ Leaves play area, tick Top โ Destroy Laser.
- + New event โ โบ Player 1 โ Compare number of lives = equal to 0 โ Restart the game.
- In Advanced: + New event โ Explosion โ Animation has finished โ Destroy Explosion.
WhenUpon pressing Space
DoCreate Laser at (0, โ24) from SpaceshipPlay sound Laser
WhenLaser collides with Blob Alien
DoCreate Explosion at Blob AlienDestroy Blob AlienDestroy LaserAdd 10 to scorePlay sound Explosion
WhenSpaceship collides with Blob Alien
DoDestroy Blob AlienSubtract 1 from livesSpaceship flashes for 1 secondPlay sound Hit
WhenExplosion: Animation has finished
DoDestroy Explosion
Make it yours
- A second enemy: Flying Saucer with Chases another object โ Spaceship, from a second spawner every 6 seconds.
- Slow the fire rate: add Not more than once everyโฆ 0.3 seconds to the Space rule (Advanced).
- Keep the ship on screen: Spaceship leaves play area at Left and Right โ Stop.