Thursday, 27 April 2017

The next thing i did was go into my tracker blueprint, I've created all the functions and variables i will need to in order to create my blueprints and then i was ready to start working on them. Ive also made the variables in the "custom settings" editable but i will explain why later on. 
i went into event graph and created the following (see picture) i have added a comment to all of them so its clear what they are for. 
 here you can see how the tracker looks like in game, this is what the billboard variable was for in the previous photos. 

This blueprint is the one that will activate the next checkpoint when you pass through one. 
This blueprint is the lap check script, checks to see if we have completed the race, lap or sets up the next checkpoint
This blueprint checks to see if the race has been completed

The blueprint above will pass the times achieved by the player to MyPlayerController times, if the player managed to beat the default lap/race times the result will be updated to what the player has achieved and will stay like this until its beaten again. 
What you can see here is that all I just did in the blueprint section will be accessible by going on the tracker icon in the game or on the tracker blueprint in the content browser. Now we will be able to change the settings of all those variables without having to dig deep into the blueprint.  As you have probably also noticed i have added sound into the game! Now whenever a checkpoint is passed a sound will be played to inform the player, One more sound i have added is the level music, it will be played whenever the game is launched. I got both of those sounds from the internet, might change them in the future.



I've made special a folder called blueprints and then inside that folder I have made a couple of blueprints (see picture on the left). Also I made another folder inside the blueprints folder named 'UI' and inside that folder I've created a widget blueprint.  I have done this so i can keep my files nice and tidy.


After creating MyPlayerController i went into VehicleAdvGameMode and set the player controller class to MyPlayerController.
Afterwards when i was satisfied with my race tracks I created some blueprints which i will need in order to create my game. 
I then went onto MyPlayerController and did all the prep work, got all the variables, functions etc ready so i have everything prepared for when i will be using them.
 I went into the Checkpoint blue print and created a arrow, the reason for this is to only allow the checkpoint only to be passed if the played goes through it the same way the arrow is facing, so the checkpoint cannot be passed if e.g. the player drives through the back of it.
I then added a trigger box in order to make the checkpoint , i resized it and then placed the arrow in the middle of it. I've also added a particle system, but im yet to work on it.
Here is a picture of the checkpoints in game, if you look closely you can also see the arrow in the middle of it, in the bottom right corner of the image. This image also provides a different shot of how my game looks like. The red arrow is not visible in game, only in the editor unlike the trigger box as it needs to be visible in order for the player to know where it is. 

I've also created the blueprints that will allow the checkpoint system to work. 

Starting new project

Upon making a hard decision i have decided that i will start a new project for my game. I believe that this is a good decision and will allow me to create an even better game since now i have more experience and knowledge with the software.
I created a new VehicleAdvancedProject and then i created a small little race track.
I added some tree logs into my game and placed them the way i liked the most so it looks like they are both falling on each other. I got those from a pack i found on the internet.

I have added another race track so there is more than one to race on.

Wednesday, 5 April 2017

I went out and searched for water textures that i could put in my game and i came across this one, I downloaded it and put it into unreal, placed it into my world and it turns out the water also moves! So now i also have waves in my game.


I also added rocks around the map to act as background, below you can see how it looks in game
Adds a good feeling to the game as now you can see where the map ends