Star Defender
Blast the aliens before they reach you. Star Defender shows how to create objects from a rule, how chasing works, and how an explosion cleans itself up.

What it shows
Shows: Creating objects, chasing, explosions. The level’s Gravity pulls is Off, so nothing falls unless a movement moves it.
How to play
← and → slide the ship. Space fires a laser. Blob aliens drift down and are worth 10. Flying saucers come every six seconds, chase you, and are worth 50. Let an alien touch the ship and you lose a life. At zero lives, Play again appears.
The things in it
| Spaceship | Arrow keys (8 directions), Left/Right only, Speed 60. |
|---|---|
| Laser | Bouncing ball, Speed 90, starts moving up. None are in the level at the start: rules create them. |
| Blob Alien | Bouncing ball, Speed 12, starts moving downwards, Wobble when bouncing 20. |
| Flying Saucer | Chases another object: Spaceship, Speed 14, Only when closer than 0 (always). |
| Explosion | Stays still. Its stopped animation plays once and does not repeat. |
| Alien Maker, Saucer Maker | Spawners. Blobs Every 1.2 seconds, saucers Every 6, both with Wander across 280. |
| Score, Lives, Game Over, Play Again | The last two start hidden. |
The rules, one by one

The laser appears 24 pixels above the ship and flies up by itself. “Is visible” stops you shooting after game over, when the ship is hidden.
Lasers that miss are tidied away. Blobs bounce off the sides.
A blob that drifts off the bottom is destroyed. Y > 480 makes sure it is below the level, not above it where it has only been made.
The explosion is made first, on top of the blob, and then the blob and the laser go.
A hit on the ship. The screen shakes with strength 8 for half a second.
The same two rules again for saucers, with bigger points.
The explosion removes itself when its pictures run out. See An explosion that cleans itself up.
“Is visible” makes this happen only once. After the ship is hidden, the rule is no longer true.
Three changes to try
- No machine guns. Right-click the number of rule 1 and choose Add another condition…. Pick ⚙ Special → Not more than once every… and type 0.3. Now the ship fires three times a second at most.
- Saucer swarm. In the Level tab click Saucer Maker in the sidebar and change Every (seconds) from 6 to 2.
- Faster blobs. Click a Blob Alien and change Speed from 12 to 20.