Monday, March 11, 2019

Week 25

Week 25:

Creating An Enemy NPC - Part 5

This week, I am continuing one from Part 4 of my “Creating An Enemy” mini project for my Unity Game. This week, I shall now be adding animation to the “Monster” characters for when they attack the “Player” character. Before I do this, I ran into a few problems and realised I forgot to create a script for the “Player” to interact with the “Monster” script. So, as usual, I went into the “Script” folder and then added a new C# Script called “Player”.


With that done, the “Player” and “Monster” scripts can now interact with one another without any issues for the time being. Another thing I would like to add before I animate the “Kill Animation” is having the “Monster” roar upon seeing the “Player” and then giving chase”. Another thing I would like to add before I animate the “Kill Animation” is having the “Monster” roar upon seeing the “Player” and then giving chase”.


In order to do this, I clicked on the “Monster” > “Zombear” then clicked on “Add Component” and then I clicked on “Audio” > “Audio Source”. With the new “Audio Source” option, I then clicked on the “Add” option and picked out “Hellephant Death” from the Survival Shooter Kit.  I then clicked the “Not Play On Awake” option and following this, I then edited the “Monster” script to include this and now the “Monster” will roar at “Player”.


And:




No comments:

Post a Comment

Week 34

Week 34: Critical Reflection: Conclusion: Over the course of this college year, I have managed to design, create and test my Horror-ba...