Two players can now race each other around the circuit, which is already a lot of fun. But it would be even better if the game has a clear end state and a notification about who won the game.
We will add some more scripts to the control sprites
player2. We will first build one complete instruction set, which we can then easily copy to the second sprite.
To determine whether a player has completed a round, we need to add a finish line. This can be a simple additional sprite laid across the track: