Checkpoint Tracker Variables, Functions & Event Graph
Time Attack Racer
Youtube Video Tutorial Part 1
Checkpoint BP
In the previous presentation you set up your Checkpoint BP and have it displayed initially and then disappearing when you have passed through it in the correct direction. For testing purposes you unselected the Hidden In Game option for the Trigger box so that you could see it disappear. You now want to reselect that option as well as uncheck the option for Generate Overlap Events. You will call these into action using script as you continue to develop your game. Both of these can be found in the details panel when the Trigger component is selected. Before leaving this BP remember to Compile and Save!
Tracker BP
Tracker BP
Create 10 New Variables...
Tracker BP
Set Default Values...
You should now be able to see these values from within the level editor by selecting the Tracker component and locating the Custom Settings section in the Details panel.
Tracker BP
Import Audio files as a WAV format…
Tracker BP
In order to select the audio files we first need to drag them from the Content Browser into the level editor space. Try to locate them near the Tracker for simplicity. They will look like little speakers with a checkmark.
Tracker BP
Go back to the Tracker BP…
This will allow you to add all of your checkpoints to the array and create the sequential order for how they should be completed. You will need to do this once you have placed all your checkpoints around the track!
Tracker BP
In the Tracker BP…
This will allow you to keep track of how many checkpoints are present within a level. You will use this to determine when you’ve completed a lap and when the next set of checkpoints should be queued up.
Tracker BP
In the Tracker BP…
Tracker BP
In the Tracker BP…
Youtube Video Tutorial Part 2
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
Tracker BP
In the Tracker BP Event Graph…
I forgot to make this connection before!
Youtube Video Tutorial Part 3
Tracker BP Functions
In the UpdateTimes Function Event Graph…
Tracker BP Functions
In the Lap Check Function Event Graph…
Tracker BP Functions
In the Lap Check Function Event Graph…
Tracker BP Functions
In the Lap Check Function Event Graph…
This will reset the position of the vehicle to a previously completed checkpoint if the car gets flipped over.
Tracker BP Functions
In the Lap Check Function Event Graph…
This was all for the False branch, on the following slides we will set up the True branch.
Tracker BP Functions
In the Lap Check Function Event Graph…
This will set up the True branch!
Tracker BP Functions
In the Lap Check Function Event Graph…
Tracker BP Functions
In the ActivateCheckpoint Function Event Graph…
This will activate the next checkpoint.
Tracker BP Functions
In the Race Complete Check Function Event Graph…
Make a comparison between the Actual Lap and Max Laps count and evaluate that with a Branch (True/False)
Tracker BP Functions
In the Race Complete Check Function Event Graph…
Use the Branch to trigger the Race Complete sequence when all laps are completed.
Tracker BP Functions
In the Race Complete Check Function Event Graph…
When need to connect both of the Set nodes from the previous step to the function output Return Node but can't do both at once so we will create a variable that can be set simultaneously.
Tracker BP Functions
The Race Complete Check Function Event Graph should look like this when complete
Tracker BP Functions
Design your test lap by placing checkpoints in sequential order around the track.