Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I delay the timer?
- morandi
- Scratcher
2 posts
How do I delay the timer?
I want to use the timer function, but I don't want it to start until my “game” has started (once user clicks “start” button, NOT when green flag is clicked). How do I do this? Thanks!
- scubajerry
- Scratcher
1000+ posts
How do I delay the timer?
when GF clicked
Set [Let_Timer_Run v] to (0)
repeat until <(Let_Timer_Run) = (1)>
Reset Timer
end
When I receive [start_game v]
Set (Let_Timer_Run) to (1)
- Landrover110
- Scratcher
100+ posts
How do I delay the timer?
Hi
Hope it helps
when gf clicked
set [timer v ] to (0)
When Sprite1 clicked // this is your start button
forever
wait (1) secs
change [timer v] by (1)
Hope it helps
- Discussion Forums
- » Help with Scripts
- » How do I delay the timer?