Adding a test script

Before we dive into the excitement of creating the boss enemy, let's first do something smart and create a script that helps us to test the boss that we create.

Prepare for lift off

As you may have noticed while testing the game, waiting 90 seconds for the boss to appear is a rather long time. We could just decrease the wait time in the script, but that has a few drawbacks.

It would be more difficult to test the wave phase of the game, since the timer runs for such a short time.

We run the risk of forgetting to change the timer before finally publishing the game.

A better option is to create a separate temporary script that we can throw away when we have finished the game without any risk to all our hard work.

Engage thrusters

Get Scratch 2.0 Game Development HOTSHOT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.