
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.
No comments:
Post a Comment