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
SGD300-Dungeon Siege Semester long Project / Task3
More posts
- Task3_Score UI and systemOct 27, 2019
- Task3_Map Asset ImportOct 27, 2019
- Task3_TimeWatch for game conditionOct 27, 2019
- Task3_Enemy_Movement_AIOct 27, 2019
- Task3_MainMenu and Player InputOct 23, 2019
- Task3_Porfolio_Game_DesignOct 10, 2019
- SGD300-Move to next level or sceneOct 04, 2019
- SGD300-Hearstone Item or FunctionOct 04, 2019
- SGD300-Attacking and Floating MessageOct 04, 2019
Leave a comment
Log in with itch.io to leave a comment.