This week I did a lot of work on making my monsters for the game. What I plan on doing is having a different monster in each "section" for instance we will have a bear in the forest, spiders in the ruins and other animals for the other areas which I haven't thought of just yet.
The Monster models have come from the InfinityBlade pack and come with some sort of animation, but not all of them. unfortunately there is no attack animation on the creatures but they do have a walk animation.
The way the monsters are set up is so that they can free roam and then if you come in a certain distance of them they will lock on, I will provide a YouTube video showing this for my bear in this blog post at the end.
Here is the code for my monster, I plan on using the same code for all of my blueprints but changing the actual monster itself, except for the Boss where it will have increased health.
As you can see in the screen shots, the very top of the code is the code for the bear to take damage, the middle section is its random movement around the map, and then the last part of the code is the lock on to the player.
Now I will show you a video of the bear randomly moving, locking on to me and then me killing it, unfortunately there is no attack damage on the bear yet, but I will look into this soon.
No comments:
Post a Comment