Week 27:
HND Project:
This
week I decided to expand upon the coding for the “Enemy Spawner”. I have
decided that after a while the Zombie AIs would stop spawning after a certain
amount and then continue to re-spawn, when that amount has begun to get
depleted. To do this, I first created a new “Integer” variable that I named “EnemiesOut”
and set its amount to “15”. I then wrote the following code.
With this the “Enemy Spawner” has been now fully implemented and does not need anymore tinkering with, at the time be at least. As you can see the Zombie AI will continue to spawn until there at least 15 on them on the Map, that’s when they’ll stop spawning until there number as been depleted. That’s when they’ll start to re-spawn onto the Map once again and continue their usual course.


No comments:
Post a Comment