|
-
May 21st, 2004, 11:42 PM
#1
Thread Starter
New Member
So...Im doing a Dance Dance Revolution Variant........
This is being programmed using vb6.0!
And so far, so good.
But I have a question./..you see..I am v bad at using timers..and of course...this game, like many, requires multiple timers.
So, basic concept of the game is that there are 9 pic boxes. And the game begins and the timer will random choose a box and load first.jpg into one of the boxes. They then have a couple of seconds to press the corresponding key (on the keypad, thus there are nine) and it will either be a hit or miss.
eg:
If they press the wrong button, imgMiss.Visible = True
now here is the tricky part, I want to say that if they dont press any buttons - it counts as a miss too (and I want the miss img to show)
can anyone help me...and if you need more info please just ask.
-
May 21st, 2004, 11:54 PM
#2
Fanatic Member
You mean, you want to give them some time to press, like 10 sec.
If that's what you want, do it using another Timer that counts the seconds (or whatever).
Arie.
Tip Of The Day: Fake it 'till you make it ! 
-
May 21st, 2004, 11:59 PM
#3
Thread Starter
New Member
Originally posted by Arie
You mean, you want to give them some time to press, like 10 sec.
If that's what you want, do it using another Timer that counts the seconds (or whatever).
Arie.
thats not a bad idea at all...thanks for that...
any other suggestions anyone?
-
May 22nd, 2004, 12:11 AM
#4
Thread Starter
New Member
I'm not sure if this was implied or not, but if you give a reply that requires coding, could you please include it, or at least some of it..thanks
-
May 22nd, 2004, 12:22 AM
#5
Fanatic Member
Emm.. code? here you go..
VB Code:
Dim Cnt As Integer
Private Sub Timer1_Timer()
Cnt = Cnt + 1
If Cnt > 10 Then
Timer1.Enabled = False
Label1.Caption = "Time is over. You missed!"
End If
End Sub
Timer1.Interval is 1000. That's a Second.
Arie.
Tip Of The Day: Fake it 'till you make it ! 
-
May 22nd, 2004, 12:34 AM
#6
Thread Starter
New Member
Originally posted by Arie
Emm.. code? here you go..
VB Code:
Dim Cnt As Integer
Private Sub Timer1_Timer()
Cnt = Cnt + 1
If Cnt > 10 Then
Timer1.Enabled = False
Label1.Caption = "Time is over. You missed!"
End If
End Sub
Timer1.Interval is 1000. That's a Second.
Arie.
^^ Thanks for that
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
|