Designing games using VB 6
-
Hi. I am trying to design some simple games using VB 6.( Eg: Picture matching ) Currently, I wish to create levels of diffculty that the user can choose ( Number of boxes to appear on the screen) and also a timer to record the time taken to finish the game. Can anyone help? Thank You.
-
Hi. I am trying to design some simple games using VB 6.( Eg: Picture matching ) Currently, I wish to create levels of diffculty that the user can choose ( Number of boxes to appear on the screen) and also a timer to record the time taken to finish the game. Can anyone help? Thank You.
I guess you can set the number of boxes by creating a control array from code (define the element 0 in your form, not from code) The timer: use the Timer control, make it a countdown timer (define a variable, for ex. an integer,s et it to a value and start the timer)
Dim timeout as Integer
timeout = 60 ' 60 x interval = 1 minute
Timer1.Interval = 1000 ' 1 second
Timer1.Enabled = Trueand in the timer event:
timeout = timeout - 1
lblTime.Caption = timeout & " second(s) left"This will create a countdown for 1 minute... greetz ;-) *Niels Penneman*
Software/Dev Site
Personal Site