SGD300-In Game Object Spawner


1. Introduction

This week I worked on game player functions. 

Sometimes, I player Minecraft whenever I feel bored. In this game, I can travel under the sea and every minutes the enemy spawner is spawning new enemy.

Even if I kill all the enemies, the spawner will spawn new ones. So, I would like to implement this function in my game.

2. How to implement it?

 For this function, I have decided to use "Instantiate" function to spawn my enemy prefab every few seconds. Also, I found out that by adding Time functions. I could handle the time before or after spawn object. 

3. Problems

After I tested this function, I noticed that spawning too man game object in one scene could slow down the game speed and cause awful user experience.

So, I planned to set number of enemies that can be spawned in a game (Probably 5 to 10 enemies in each scenes).

4. Lesson learned

-Spawn game object with location information

-Limiting number of object spawning

Get SGD300-Dungeon Siege Semester long Project / Task3

Leave a comment

Log in with itch.io to leave a comment.