Results 1 to 6 of 6

Thread: So...Im doing a Dance Dance Revolution Variant........

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    8

    Arrow 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.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    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 !

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    8
    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?

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    8
    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

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Emm.. code? here you go..
    VB Code:
    1. Dim Cnt As Integer
    2.  
    3. Private Sub Timer1_Timer()
    4.  Cnt = Cnt + 1
    5.  If Cnt > 10 Then
    6.     Timer1.Enabled = False
    7.     Label1.Caption = "Time is over. You missed!"
    8.  End If
    9. End Sub

    Timer1.Interval is 1000. That's a Second.
    Arie.
    Tip Of The Day: Fake it 'till you make it !

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    8
    Originally posted by Arie
    Emm.. code? here you go..
    VB Code:
    1. Dim Cnt As Integer
    2.  
    3. Private Sub Timer1_Timer()
    4.  Cnt = Cnt + 1
    5.  If Cnt > 10 Then
    6.     Timer1.Enabled = False
    7.     Label1.Caption = "Time is over. You missed!"
    8.  End If
    9. 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
  •  



Click Here to Expand Forum to Full Width