Input Timing

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Lordofsizz
Newbie
Posts: 1
Joined: Mon Apr 30, 2018 4:41 am

Input Timing

Post by Lordofsizz » Mon Apr 30, 2018 4:53 am

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!

User avatar
burger2227
Veteran
Posts: 2262
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Input Timing

Post by burger2227 » Tue May 01, 2018 1:49 am

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.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

Kennethhaf
Newbie
Posts: 1
Joined: Thu Dec 06, 2018 8:24 pm

Input Timing

Post by Kennethhaf » Sun Dec 09, 2018 10:20 am

does long.. offer lp100 cutter with 220 input voltage and how well do these cut aluminum.....say 1/16 to 1/8 inch??

Post Reply