Racing Game - Laps double after all checkpoints cleared, instead of increasing by 1

Sorry, I think you still need to look at this piece of code, it makes no sense. You’re doing this:

Foreach checkpoint:
get checkpoint number from index ( fair enough )
set total number of checkpoints ( for every checkpoint?! )
activate checkpoint ( how does it know which one? )

Now, before the loop has finished, start the next loop:
Bind an event ( you only need to bind once on begin play )
and some other stuff.

The point is, if you have 5 check points, this stuff will get called 25 times!

image

1 Like