|
-
Jun 4th, 2002, 08:16 PM
#1
Thread Starter
New Member
Maths Game Timer
I'm making a maths game and i want to put in a timer so they have to answer the question within 10secs and if they run out of time the next question pops up.
-
Jun 7th, 2002, 06:26 AM
#2
Retired VBF Adm1nistrator
Okay so just add a timer with interval = 10000
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 7th, 2002, 06:59 AM
#3
.. or use the timer() function ->
VB Code:
Dim RegTimer As Single
RegTimer = Timer
Do While Timer - RegTimer < 2
'Wait 2 Sec.
Loop
MsgBox "You are too late.. :)"
-
Jun 7th, 2002, 07:07 AM
#4
Retired VBF Adm1nistrator
Originally posted by Jim Davis
.. or use the timer() function ->
VB Code:
Dim RegTimer As Single
RegTimer = Timer
Do While Timer - RegTimer < 2
'Wait 2 Sec.
Loop
MsgBox "You are too late.. :)"
That code will have a process utilization of 99% though.
Using a timer will not.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 7th, 2002, 08:10 AM
#5
Originally posted by plenderj
That code will have a process utilization of 99% though.
Using a timer will not.
youre right.. sorry 
Jim.
-
Jun 27th, 2002, 11:32 PM
#6
Member
Is the timer on the screen, I mean is there a countdown clock.
If there s then you can just use a timer with a 1000 interval and have a code of:
if label1.caption < 10 then
label1.caption = label1.caption - 1
end if
if label1.caption = 0 then
msgbox, etc.
end if
110359
Why is it that when you kill one man people call you a murderer and when you kill one thousand you are a conqueror?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|