How do I stop a timer when a trigger zone is detected...
At the moment my game finishes when the final trigger zone is detected, but as this is wired up directly to a doorway the game ends without the user seeing their time. I have tried so many ways to fix this but if I don't use a doorway the timer still keeps counting upwards when the game has in effect ended.
Ideally I am wanting at the very least this to happen next:
The timer stops when the trigger zone is detected, a message appear on screen which I can add, reading "Press X to continue", which is tied to a controller sensor.
A scoreboard would be good but have spent hours trying to sort that out with no luck.
If I can just get the thing to stop the timer so at least the person knows their time, then I'll upload that version, then tweak it some more.
TIA.
-
set the timer to be on 'SPEED MODE'
then the counter will only count up while the signal being fed into it is on.
example use;
*TRIGGER ZONE used to start timer -> feed TRIGGER ZONE DETECTED OUTPUT into a COUNTER with a value of 1
*Connect COUNTER FULL OUTPUT to your TIMER (START TIMER INPUT)
*TRIGGER ZONE for stopping the timer -> Connect to the RESET COUNT INPUT to the above COUNTER
Hope that Helps!
-Marcos
댓글을 남기려면 로그인하세요.