I have a button in my world, that when pressed, uses logix to grab T and add 900 to it, then sets that value as countdownTime. Thus I get a timer for 15 minutes.
I have a button in my world, that when pressed, uses [[ProtoFlux]] to grab T and add 900 to it, then sets that value as countdownTime. Thus I get a timer for 15 minutes.
For example, if T is 1200 and I wanted a 3-minute timer, I would need to set CountdownTime to, 1200 + (3 (min) * 60 (seconds)), 1380. and it would output a string of 3:00.
For example, if T is 1200 and I wanted a 3-minute timer, I would need to set CountdownTime to, 1200 + (3 (min) * 60 (seconds)), 1380. and it would output a string of 3:00.
Revision as of 02:01, 25 April 2024
Component image
Text Countdown Clock component as seen in the Scene Inspector
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
This component creates a Text String in the form of HH:MM:SS as a countdown timer based on the difference in the value of T and the value of CountdownTime.
Examples
I have a button in my world, that when pressed, uses ProtoFlux to grab T and add 900 to it, then sets that value as countdownTime. Thus I get a timer for 15 minutes.
For example, if T is 1200 and I wanted a 3-minute timer, I would need to set CountdownTime to, 1200 + (3 (min) * 60 (seconds)), 1380. and it would output a string of 3:00.
Throw that in a Text Field of a Text Render and then you get a Visible Countdown.