HopFlee (Enemies and Interaction)


Enemies and Interaction

In the design of my game, I have been thinking so far about what kinds of obstacle which is best suited for my game and look interesting with every game object and background in the game scene. There are many obstacles I listed and tested from time to time. However, I still have not decided which one I will choose to be the right obstacle for my game. After I finish implementing the game, I will consider it the best one and make it look fun.


Generating the obstacles is one of the interesting parts of the game design. It is basically the game property in the game that we cannot leave out in the gameplay. Obstacles or enemy is like a soul that makes the game fun and challenging for the user.


I made a game obstacle a spawner prefab that spawns random obstacles all within the x and y axis in the game scene. I randomly going to spawn different locations of the obstacle’s spawner throughout the whole scene of the game. The spawner obstacles will be linked and interact with the main camera. I was able to link this process successfully by adding a spawner as a child of the main camera plus another scripting. I also made an obstacle that appear in the direction of the player, so that it would not go off the screen when it spawns.

The main camera movement will lead the player to encounter the obstacle spawner. The spawner will trigger the player if the player collides with that spawner.

Leave a comment

Log in with itch.io to leave a comment.