Post

 Resources 

Console

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

 All Forums
 VBGamer
 VBGamer
 Variable/Form movement

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

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.

-Bryk

VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

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