[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4149: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3027)
Pete's QBASIC Site • Input Timing
Page 1 of 1

Input Timing

Posted: Mon Apr 30, 2018 4:53 am
by Lordofsizz
Hey guys,

Just wondering how I would go about programming something where the timing of the input mattered.

For example if I were making a baseball game and how far you hit the ball depends on how well timed your input is.

Or if I were making a reflex game where the quicker you pressed the key displayed on the screen results in a better score.

Thanks in advance!

Re: Input Timing

Posted: Tue May 01, 2018 1:49 am
by burger2227
The TIMER function marks events as 86400 individual seconds with midnight as 0.

Input must be in an INKEY keypress LOOP. INPUT requires the enter key to continue.