Monday 31 December 2018

Week 15

This week I went online to find tutorials on how to do the following things to add to my game: a timer, collectables and a health regeneration system. the first thing i decided to add to the game was the collectables. so i went a head and found a tutorial on how to do this. the tutorial i found was from unity them self's. 



so after watching these tutorials i went a head and started to try and implement the collectables feature into my game.

after being able to get the collectables to work within my game i went a head and added a timer function onto the game to be able to track on how long you have been playing and try and compete between your friends on a better time.
the following video allowed and explained on how to implement a timer into the game.
after watching this i went a head and had a go at doing it within my game.
after being able to get the timer and collectables to work i thought i would try and find a tutorial on how to do health regeneration and i found the following video.

so while i was watching this video i gave it a go and i couldn't figure it out on how to do so so i went a head and looked around more but couldn't get the heart object to add health but the Debug.Log was running and stating adding health when run over the heart and it disappears for so long which really annoyed me because i couldn't figure it out so i messaged my mate again and he managed to see where i went wrong and helped me fix it so the heart adds health.



Monday 24 December 2018

Week 14

this week after struggling to find out why the zombies would not animate but do damage i looked at the code and realised that the animation part of the code last listed as static so it only allowed one zombie to animate till multiple zombies was on the scene. so i removed the static part of the code then the animation worked on them all.

Then i started to do research into how to make a spawner. I managed to get the spawner to spawn zombies but the zombies wasn't causing damage to the player so I got the zombies that caused damaged In to the spawner so when I ran the game and the zombies from the spawners started to cause damage to the player but I stumbled onto a error that occurs when the spawner spawns a zombie the error in the image below kept occurring.







After getting the error and I couldn't figure it out so I messaged a mate so he could lend a fresh pair of eyes on the situation. So after getting fresh eyes on the subject he suggested to look at the spawner and the zombie. After looking at the zombie I put the script on a part of The zombies body as well as the zombie it self so after removing the script the error went.




Monday 17 December 2018

Week 13

This week I went online and looked for blueprints for different models that I would be able to use to help create my model for my animation assignment. So as I went through and looked at different blueprints I found a blueprint of a train that I am going to use to help build my man model. Also I went ahead and started my again as when I tried on my last game I had errors I decided to start again and copy the code to my new game and by doing so I managed to get the code to work so that the player has a health bar and also that the zombie is able to do damage to the player however I created a animation controller so that The zombie is able to walk towards to the player and attack when the zombie it's near the player. Also I tried to add multiple zombies in the game however when I added multiple zombies to the game the animation controller didn't work on the new zombie but could still do damage when the player gets near the zombie

Monday 10 December 2018

Week 12


This week I started to create my model for the animation assignment I went ahead and decided to go on the internet and find model templates on what I thought I would be able to use to create my model so I decided to get a train template to use and construct my model. Also after getting loads of problems and having a talk with my teacher I decided to start again with my game so by starting again I copied the code from the last go at manning the game and by coping the code to the new one I managed to get the code to work to allow a zombie to follow and to do damage to the player.

However when I added multiple zombies the animation controller didn't work with the new zombie what was added to the game so I kept removing it and adding it to the game but still didn't work so I removed it.



Monday 3 December 2018

Week 11

this week I started to try and add animation to characters so when they walk towards you the animation kicks in and when attacking the attack animation kicks in but I had a few problems with it adding the code to the characters and I couldn't work out why the error code was there so I tried to google it but couldn't find anything to do with the error code so I started a new project and used the code and I still had the same error.

Week 31

This week i went a head and created another maze and looked for a troll assist that i could use for a mini boss during the maze.