Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Designing games using VB 6

Designing games using VB 6

Scheduled Pinned Locked Moved Visual Basic
designgame-devhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Plane
    wrote on last edited by
    #1

    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.

    N 1 Reply Last reply
    0
    • P Plane

      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.

      N Offline
      N Offline
      Niels Penneman
      wrote on last edited by
      #2

      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 = True

      and 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


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups