Add the Timer Component to turn your Score Tracker into a Countdown Timer
How to use the Thunkable Timer Component
How to use conditionals to check if a variable is equal to 0
How to use the Text Input Component to get a value for a variable
Incrementing is adding to a value. You will increment the value of a property when creating your counter app.
Decrementing is subtracting from a value. You will decrement when creating the countdown timer app.
On My Projects Page, click the 3 dots on "Score Tracker"
Click Duplicate
Rename your new app "Countdown Timer"
add 3 new buttons
Rename and change Text to "Start"
Rename and change Text to "Pause"
Rename and change Text to "Reset"
Add a Text Input Component
Add a Timer Component
Add a Text to Speech Component
interval to "1 Second"
Loops --> True
Enabled --> false
When Start Button Clicked
set Timer Enabled to True
When Timer Fires
if app score > 0
change score by -1
set Counter Label to app score
Text to Speech call speak app score
Else:
set Timer Enabled to False
When Pause Button clicked
set Timer Enabled to False
When Reset Button clicked
set app score = 0
set Counter Label to app score
Under Properties, set Hint to:
"Enter a Starting Number and Click 2x"
When Text Input Clicked
set app score --> Text Input get Text
set Counter Label to app score