Hello all
I am thinking of creating a new quiz/test, but i need a small feature that i have problem to make.I would like to have a countdown clock, eg starting from 10 seconds that goes to 0 seconds, showing the time left (seconds and 2 decimals) for the player to answer.And of course to be interrupted when the player answers.
As for the part of waiting the player to answer and taking a bonus based on quick answer, ia have already made that for <Capital quiz> using AFTER AND PRINT REMAIN.The one that i cannot think something is to make the countdown showing in the screen and being interrupted when player answers.
Anyone has a simple way for that?
Many thx for your help!
Video 3 in this thread may be of help:
https://www.cpcwiki.eu/forum/applications/various-basic-pd-programs-from-the-eightiesnineties/ (https://www.cpcwiki.eu/forum/applications/various-basic-pd-programs-from-the-eightiesnineties/)
Quote from: ComSoft6128 on 16:11, 25 March 20
Video 3 in this thread may be of help:
https://www.cpcwiki.eu/forum/applications/various-basic-pd-programs-from-the-eightiesnineties/ (https://www.cpcwiki.eu/forum/applications/various-basic-pd-programs-from-the-eightiesnineties/)
thx for the answer!
My example uses EVERY and the check is made every second, so I guess to see the Decimal Intervals EVERY 50 can be changed to EVERY 25 to make a check every half second for example or 12.5 for a quarter of a second if you like that .25 interval.
I'm sure if can be done using TIME, but it's a bit late here and I can't do the math, unfortunately I can only List a Screenshot of the Code.
Quote from: AMSDOS on 11:37, 26 March 20
My example uses EVERY and the check is made every second, so I guess to see the Decimal Intervals EVERY 50 can be changed to EVERY 25 to make a check every half second for example or 12.5 for a quarter of a second if you like that .25 interval.
I'm sure if can be done using TIME, but it's a bit late here and I can't do the math, unfortunately I can only List a Screenshot of the Code.
Many thx AMSDOS! is seems it works fine with your proposal!