Week 4 - Self Study Part A
Hello Folkerinos, welcome to the self study for this week. This will be part A of this weeks self study and this will cover the 'simple game' section of the self study. In this part, we essentially add a few core bits to the preexisting scene from this weeks tutorial like a playerhealth script, a trigger script and a spawner script.
First we started with changing the enemy spawn code from the player which had spawned them where a mouse click occurred to a empty space within the world which will spawn them in timed intervals. And we enabled the player moving script within the player gameobject.
Then we added a player health to the player as well as added a ui text which prints text on the camera screen. with that we have a functional health system within the game now. Then we added a medpack within the game which when collided with the player will increase the players health, and as a nice touch, i added a little animation to it so its not just boring and bland cube in level. With the trigger script, it does an action based on if there has been a collision that involves a trigger object. In this instance, we have to where if something collides with the player, it will do a set action.
and to end it off, added a way to kill the player where if a enemy that is spawned from the spawners interact with the player will reduce the players health as well as disappear as its a one hit wonder.
In the future, i will most likely be experimenting with the particle system so ill leave that to future hakki to deal with (im gonna regret this).
Ui is pretty easy to learn so im sure i can have a message pop up for when the game is over.
But that is all for this self study, pretty bare bones but not the bulk of this self studys work so ill see you in part b.
KIT207 Portfoilo
Watch as my brain unravels throughout the semester
Status | Prototype |
Author | HakkiMcSnakki213 |
More posts
- Week 6 - Final Personal Tut Devlog :(47 days ago
- Week 5 - Self Study54 days ago
- Week 5 - Tutorial54 days ago
- Week 4 - Self Study Part B61 days ago
- Week 4 - Tutorial62 days ago
- Week 3 - self study68 days ago
- Week 3 - Tutorial74 days ago
- Week 2 - Self Study75 days ago
- Week 2 - Tutorial81 days ago
Leave a comment
Log in with itch.io to leave a comment.