Note: You must be registered in order to post a reply.
T O P I C R E V I E W
Romara
Posted - Nov 16 2004 : 2:17:22 PM 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?
2 L A T E S T R E P L I E S (Newest First)
Eric Coleman
Posted - Nov 16 2004 : 2:36:07 PM 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
Brykovian
Posted - Nov 16 2004 : 2:31:55 PM 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.