Unity Tutorial 08

 



For this weeks Unity Tutorial, we built upon the one from last week. The first new addition we added was for the enemies. For SpawnManager, we added in code that allowed the enemies to continuously, so every time all the enemies have been defeated and knocked off the stage, a new set of enemies would appear to allow the player to continue fighting enemies. 

For the enemy script, we added code so that when enemies fell off the stage, they would be destroyed as to prevent lag from having too many enemies. After which we created a waves feature. This feature made it so every time the player would defeat the enemies, a new wave would spawn with one extra enemy e.g. Player defeats wave of three, new wave has four enemies spawn.

We realised this would eventually become overwhelming for the player having to deal with so many enemies as the got through the waves. Using the SpawnManager again, we made it so the powerups we created last week, that gave the player stronger knockback, to spawn every round so they had an easier time dealing with the enemies.

The main difficulty I had with this tutorial was the despawning of enemies. They would usually just keep falling instead of getting deleted which caused the game to get laggy fairly quick.

Comments

Popular Posts