hello I created some rally stages and I would like to know how to create a stopwatch between 2 precise checkpoints with the rules
Don’t have experience with this, but I would create two events and one continuous action.
3 variables (player variable)
Time gate 1
Time gate 2
Difference (tg2 minus tg1)
Global variable:
fastest time (smallest diff)
Initilial: Set diff, tg1 and tg2 of all players to zero, set global diff to 9999
Always:
Display content of player var diff (pdiff) in HUD
Display global diff (fasted time of all players) in HUD
Event passing gate 1: store time in player var tg1
Event passing gate 2:
-store time in tg2.
- Calculate tg2 minus tg1, store result in player diff
- Compare player diff to global diff.
If pdiff smaller than gdiff: set gdiff to pdiff
if not; display popup: “a snail is faster…”