Monday, 21 May 2018

Week 33

This is the final post of the project. I worked on making a "You Win" text come up when you kill the last enemy to signal the end of the game.

This was pretty simple to do really, I just made a winner widget and chose where I wanted the text to come up. As you can see in the screenshot I made it in the centre of the screen.
I then added this simple code onto my spaghetti code to make it show up when the enemies alive counter hit 0.

And here you can see the text box working when the enemies alive hits 0.
I then decided after playing through the game, I wanted to move the start location to on top of the dried up waterfall so that is what I did.

Monday, 14 May 2018

Week 32

This week is the one from last week of me working on my project, What I wanted to do this week was make a kill counter, an enemies alive counter and a health pack so that when you run underneath the health sign it heals you back to full.

Lets start with the health package.

The first thing I did was design the health sign to go on to float in the air and make it bright enough so you spotted it and noticed it, I feel I did that pretty well.
The next thing I did was add the trigger box underneath it so that when you step under it it gives you 100 health back, Here is the code that does this, it is actually really really easy to do.

Next I moved on to the Kill counter and the Enemies Alive counter.
The first thing I did was choose where I wanted to position it on the screen, I chose just below top left, so it is easily visible to the player when they are playing. The next thing I will show you is the Spaghetti code that adds a kill to the counter upon a death of the enemy, and also takes one off the opponents alive counter.
And finally this is it in game, it starts with 67 alive as that is how many opponents there is on the map. What I plan to do next week to finish the project off is to make it so when the Enemies Alive goes to 0 it says "YOU WIN" on screen.

Monday, 7 May 2018

Week 31

This week I moved on to adding the other monsters around the world.

They are all set up the exact same was at the bear so I wont go through the code this time as it is just what you have seen from before.

The monsters I added this time were spiders, in the ruins area. (Although they unfortunately cant navigate it too well.) I added Wolves into the open area around the other side of the map, in the forest, and around the volcano.

I made a new "castle" sort of building which had lots of really evil worms in there that will try and eat you whenever you go near them.

I finally added in the Boss, the only thing different between him and the other monsters is that he has 200 HP instead of only 50. Meaning it takes 4x the amount of shots to kill him.

Below is a screenshot if each of the monsters in their new homes.





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.

Monday, 26 March 2018

Week 25

This week I decided to make a small oasis on the map, it was nothing extravagant but just a little pond if you like surrounded by some pine trees to make it look pretty.
I could end up building it into its own little hillside terrain to make it more private and you can almost find it as an easter egg but i haven't thought about that yet.


Monday, 19 March 2018

Week 24

This week I decided to add in a "dried up waterfall" and a lake that is also dried up coming off of it, I added it next to the ocean although it isnt connected. I think this looks kind of cool and querky and its close to the sandstone area so it shows this part of the map is very warm.

as you can see although there is a few ferns around there is dead trees and the waterfall all dried up to the top left of the picture.

Monday, 12 March 2018

Week 23

This week I decided to do some more to the bottom of the volcano, to make it look a little less boring and ugly, I found a nice tree called "HillTree" which is like a birch almost but it doesn't have a white trunk.

I decided to litter around a third of the volcano in this to make a kind of forest to make it look like there is something on the volcano rather than just a plain edge.

Monday, 5 March 2018

Week 22

This week I again had a really big mental block on what to do with my game, I couldn't think of anything creative to do, as I didnt know how to put it onto my map. Instead of doing nothing I decided to fill up some empty space on my map and add in a weird "Sandstone rock" and then put some dead wood on there almost like a baron area if you like.


Monday, 26 February 2018

Week 21

This week I did something completely different in my game, I decided to add a "parkour" section to it. if you fell you went under water. I decided to add this section because it was a little different and funky and I thought it could be fun, there is 5 sections to jump across and in the future I was thinking that maybe I could add a health pack or something onto this section?

Here you can see the parkour, its a little different to the rest of the map, but I think its funky.

Monday, 19 February 2018

Week 20

This week I went back to the forest idea, I found out another tree from the greenery pack I downloaded earlier on in the project and chose another type of pine which you will see an image off in this post, and I also decided to add a type of rockery near this forest too on the side of the volcano to add something else into the map, I found these rocks online.




Monday, 12 February 2018

Week 19

This week I did nothing, I had a busy week at work and I had my brothers birthday coming up so had to sort things out for this week. I will pick up again next week

Monday, 5 February 2018

Week 18

This week I had other assignments due in, so I decided to do those instead.

Monday, 29 January 2018

Week 17

This week I was very stuck for ideas if im being completely honest, So I just decided to make like a little "tree" box which could be good for running around and trying to confuse opponents. You can see what I have done here.
as you can see it is a little random but it fits in with the theme of everything and breaks up the map itself.

Monday, 22 January 2018

Week 16

This week I moved on to the ruins area, I really struggled to make it how I like but I just couldn't work out a way to make it work.

The materials I used for this area was a dead tree that came in the tree pack last week with the Pines, some rocks, the walls and the broken down buildings. Below is the image of the dead tree I used.



In the next image you will see how I made the ruins, as you can see from the image you will be able to see what i mean when I said I wasn't too sure how to make the ruins themselves, I decided to add some dead trees around the area to show that it was old and run down, then I added in the rocky areas to add some sort of "cover" and something to manoeuvre around, I then added in the broken down structures to add more of a "ruiny" feel to the place.

Monday, 15 January 2018

Week 15

This week i looked at the upper area of the Marshlands lake, as you saw last week I added in the huts at the bottom end.

I decided to go for a nice "forestry" look, so I found some trees on the Unreal Marketplace and found some really nice tall Pine trees.

I decided to add a few in to start with round the lake but decided they look really good and made a bigger forestry area for these around the top of the marshlands.

This is the tree I chose to use in the forest around the upper marshlands that extends to the sea and the ruins area.


Monday, 8 January 2018

Week 14

This week I added the huts I downloaded the other week into the "marshlands" to add a little something to the area, I also had to work out how to make it so you could walk into the actual hut itself as although there was a door there was an invisible barrier blocking this but i figured out how to change this by changing the collision field "Can Character Step Up On" to equal yes.

And below you can see the character inside the huts themselves.

And finally here are some of the huts around the marshlands.

Monday, 1 January 2018

Week 13

This week was New Years, so again I spent my time with family and friends over Christmas and looking forward to the New Year.