Special Fire Bonus

It is rather common in scrolling shooter games to find power-ups that give the player extra fire power, repair the damage, give extra points, give an extra plane, etc. Such power-ups can appear when the player shoots a plane or they might simply be encountered during the flying.

For example, you can have a special fire bonus (ability to shoot more bullets) when the player reaches a score of 50 and another one when he reaches 100 points. In a proper game you’d make it more like 400 and 1000 but we want it to be easy for testing.

Go into the main plane’s Space Bar event. Add a Test Score action (if the score > 50). If so we’ll set the Alarm to 10 (bit faster), otherwise the Alarm will be the normal amount we had.

Add Start & End blocks around the new Alarm action like this…

Inside the Start & End blocks we’ll do the following…

  1. Test Score: test if score > 100
  2. If so, Set Alarm: set alarm to be super fast, only “5”
  3. If not (score >50, but not 100) Else
  4. Set Alarm: set alarm just a bit faster, “10”

So it now looks like this…

Save and test the game, using the ‘N’ key to skip to the “Testing: Fire Bonus” level.

When you get more than 100 points, you’ll be able to shooting bullets quickly like this…

Keep your game open and get it checked so far…

Main Plane Colliding with Enemies

If the player gets hit by an enemy plane more than 3x, the player loses a life and the main plane should be destroyed

Go into the myplane object and add a Collision with enemy1 event…

  • Create Instance: first set to other (= enemy1 plane), not self (= main plane)
    set object to explosion1, relative so same places as where enemy plane is
  • Destroy Instance: other (enemy plane should disappear, not the main plane)
  • Set Health: take away 30
    If the plane is hit more than 3x, then player loses a life.

Duplicate the event for Collision with enemy2 and enemy3

Testing Room

Save and test the game, using the ‘N’ key to skip to the “Testing: Colliding” level.

  • when the plane and enemy plane collide, there should be a small explosion.
  • the health should go down by 30

Keep your game open and get it checked…