Monday, 30 April 2018

Week 30

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.

Monday, 23 April 2018

Week 29

This week I worked on sorting out the health bar for the character. I followed this YouTube video here 

I will screenshot the below steps to give a more visual view of how I did it. I started off by creating the health bar widget, this basically is where the position of the health bar will be on screen.
The next thing I had to do was set up the Variables needed to get all of the health bar working and displaying the correct health, here is a screenshot of all the different variables I have used, bare in mind although I have a "regen" variable I have not added any health regen in as I wanted to make this game hard.
The next thing I added to add in was the function to make the health bar update in real time. and also to display the graphic in the health bar widget.
And finally this is the code that connects the health bar to the First Person Player.
The white line connecting to the "create health bar widget" section is the Event BeginPlay tab which is what happens when the game starts.



Monday, 16 April 2018

Week 28

This week I have made it so the Gun bullets will destroy on impact, This took a lot of brain ache to figure out how to do it so I will show you all the code I have done to make it destroy on impact and also to make the bullets grey.

This code here is what makes the ammunition destroy on impact, this is to stop having to many entities on the ground which will cause performance issues. I simply added the "DestroyActor" tab and connect the "Event Hit" to it.

While also in this screen for the "FirstPersonProjectile" I changed the size of the ball to be half the size in the scale section to make it more of a "bullet" if you like.
The next thing I did was set the damage of the bullet so that when it hits something with health it will take that amount off of the target, I have set the damage number to be 5, and most of the opponents will have 20 health, with the bigger opponents to have up to 100.
This here is the code to make the damage ratios apply.

Monday, 9 April 2018

Week 27

After choosing to change the way my project was going last week, this week I decided to change the project from 3rd person to 1st person. I did this by Simply creating a new project in "First person mode" and then importing my map over and slotted it into the Maps folder.
I have also now added the spawn point into the actual house so when I click play I spawn in the house, and you will see the gun that you spawn with, in which I need to change the bullet off later down the line.
Here you can see the spawn point, you can look at the window and see the wonderful mountain in the background as well as some of the forest in the marshlands.

Monday, 2 April 2018

Week 26

This week I had a serious think about what I wanted to do with this project and what I wanted to get out of it.

I am really struggling to find motivation to actually do the work as you may be able to tell by the progress I have made on the project recently. I have all these ideas inside my head but when it comes to putting them down onto paper, I just can't do it, i'm just not a creative person.

Going back to the very beginning of the project I came up with this fantastic project of a PlayerUnknowns Battleground type game with making it so you could play on LAN and pick up weapons, but the further I got into this project i realised how ambitious that was and how unskilled and uncreative I am.

Going forward now I am going to be making a zombie survival game. I am going to TRY and make it a little like PUBG, so I will try to make an "alive" counter in the top corner of the screen, showing how many monsters are still alive, there will be a health bar of your health, and you will also spawn with a gun, I will also try and make a "med-kit" drop on the ground which give you full HP when stepping over it.

Hopefully my rework of the project will help inspire me to get it completed now, as I really am struggling to find the motivation and creativeness to actually do this project.