Friday, 16 June 2017

 This part of script will set up the next checkpoint on the track.
 this part of blueprint will check and see if we have completed the race, completed a lap and/or it will set up the next checkpoint on the track.
This part of blueprint will check and tell us whether the race is over or no.
Inside the vehicle blueprint I've created a script that will check and see if the player is not moving and is stuck... and it works! but only if i don't pass through a checkpoint like in my previous game, after passing through the checkpoint the car re spawns like this:
as you can see its really stretched and the car spawns backwards to the way you passed the checkpoint, however you can still drive it! only up until 20km per hour, it doesn't go further than this.
Here is the other part of the script in MyPlayerController, it will re-spawn my vehicle in the re-spawn location which is the last checkpoint collected and then you will take control of the vehicle.
I have also added an event which will update the lap it will add to current lap, for example, if we complete lap 1 it will display that we are now on lap 2 and it will also monitor and display if we manage to set a new lap record.

No comments:

Post a Comment