Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Variable/Form movement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Romara
Neophyte

USA
1 Posts

Posted - Nov 16 2004 :  2:17:22 PM  Show Profile  Send Romara an AOL message  Reply with Quote
Hello everyone, I'm trying to make a very simple game in which a startup form is displayed on running that allows you to select a difficulty (intSpeed). What I need to know is if/how you can take that selection to the acctual game when it is loaded. Is if even possible?

Brykovian
Bryk the Cheese Slayer!

USA
58 Posts

Posted - Nov 16 2004 :  2:31:55 PM  Show Profile  Visit Brykovian's Homepage  Click to see Brykovian's MSN Messenger address  Reply with Quote
I assume that this startup form is not part of the actual game ... instead, it launches the game file once the player has set his/her option ... is that correct?

If so, then the 2 simplest ways to transfer the user's choice would be to either put it as part of the command-line that launches the game ... the game application can then parse Command$ to get that info. Or, write it to a file, which the game application will read on start-up.

-Bryk


www.mwgames.com
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - Nov 16 2004 :  2:36:07 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
Define a global variable in a module and also use Sub Main() as the startup object. It would look something like
  
Public g_difficulty As Long
  
Public Sub Main()  
   'display the first form that sets the difficulty variable.  
   Form1.Show vbModal  
  
   Form2.Show  'This form is the game.  
  
End Sub
  
  
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.