The Bug Bugs (Iris)


This was my first time creating an enemy spawning system. I followed a tutorial by Brackeys on YouTube and was able to learn a lot about Serialization. My goal was to have multiple enemies in multiple waves and have them spawn at specified random locations. The only issue was that I combined his script with another because I needed my enemies to die once they touched the farm plot. Because of this,  when the original enemy that was already placed in the scene would follow its auto path and die, the wave system had a slight delay and would create clones of a dead enemy. I had to move the test enemy out of the way and block it from colliding with the farm plot in order to solve this issue. Another issue I resolved was with was my enemies not moving once they had spawned. I originally set their spawn location to the bush asset itself, but then realize that the enemies that were spawned were colliding with the colliders on the bushes. So I instead created empty objects and replaced them as my enemy spawn locations. 

Get Summer of Tomatoes

Leave a comment

Log in with itch.io to leave a comment.