Week 5 self study

Week 5 Self Study
This week's task was to turn what we previously had into a (somewhat) functioning game. This was rather tricky since what we had last week was pretty barebones, however the provided scripts did help. Firstly, I disabled the raytracing part of the player that allowed them to spawn enemies, and instead created empty "spawner" game objects, with carried one of the provided scripts, allowing me to spawn enemies from them. A small change was made to the enemies start function to allow it to lock onto the player here. After that, I added the player tag to the player object, and the trigger collider to the enemy prefabs, setting them as trigger. Some tomfoolery had to happen here in order to make the enemies decrease the players health, as they are only instantiated objects. I instead made an option for a collision to happen on the players side against enemies, which let me decrease the players health from there instead of from the enemies.
had to make gif short as it was exceeding file size limit for some reasons. As we can see here, the enemies follow the player, destroy themselves on collision, and decrease the players health, resulting in the player being destroyed when the health reaches 0 (it destroys the camera too) (It appears the player health was meant to be visible somehow but I can't see that section explained anywhere?)
Alongside this, I was tasked to add health packs, of which I did. These were relatively simple collision checks using the provided script and calling the function that increase the player health. Granted I can't actually SEE that it works since I can't see the players health, but its done similarly to the enemies and they work so
I placed a few of these around the scene and gave the game ago, of which I got rather trapped on the outskirts and perished (health packs marked in red).
UTAS KIT207 Portfolio
Status | In development |
Author | patttriple |
More posts
- Week 6 Tutorial6 days ago
- Week 6 Self Study6 days ago
- Week 5 Self study game ideas14 days ago
- Week 4 tutorial21 days ago
- Week 4 self study21 days ago
- Week 3 Tutorial28 days ago
- Week 3 self study28 days ago
- Week 2 blender objects35 days ago
- Week 1 blender objects42 days ago
Leave a comment
Log in with itch.io to leave a comment.