Increasing the horde
Limiting the offensive power of the player helps to make the game a bit more challenging. But a single group of five enemies isn't much of an attack force to withstand. Let's give the player some more work to do by increasing the number of enemies and then create more enemy variants.
Engage thrusters
We will copy and edit a few scripts that we have already built to create more waves of enemies as shown in the following steps:
Go to the enemy's Scripts tab.
Look at the <green flag> script and see how we first set the enemy sprite to the correct position and then made a few clones in a limited repeat loop.
Right-click on the wait block just before the repeat loop and select duplicate. This will create a copy of the block and everything underneath it.
Drag the copy to the bottom of the script and click on it again to attach it.
Move the cursor back to the first wait command and repeat the process to create four consecutive repeat loops.
Change the numbers in the second, third...