Game Development Reference
In-Depth Information
10. Change the value of the muliplier_Y variable to 0.5 to make this enemy slower
than the red enemy.
11. Remove the last two repeat segments to create only two waves of these
heavy enemies.
12. Change the wait imes to 18 and 10 .
13. Change the number of repeats to 2 to only create two enemies per wave.
14. After this, save the project to make sure you don't lose your progress.
The following screenshot shows the altered script for the third enemy type:
Objective complete - mini debriefing
We now have an interesing army of enemies coming our way. Test the game and see how
it looks. Take special note of when the enemies spawn, how fast they move, and how they
respond to incoming fire. You can play around with the numbers in the < green lag> scripts
to make the enemies appear in diferent paterns.
 
Search WWH ::




Custom Search