Results 1 to 6 of 6

Thread: game?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Location
    Ya don't wanna know...
    Posts
    25

    Red face game?

    elo,
    I'de like too ad some sound too my game, How do I do that, aren't there any tutorials for this out there?

    I know how to save text, but how do I save the progress you've made in a game?

    How can you open it again?

    tx :-)

    ps: I know this doesn't belongs here, when a save(in save as) a text file it opens a new textbox, and I want it to use the current textbox, How? I know where the problem is, but not how to fix it:
    Code:
    Dim frmDoc As New Mdic2
    There it is, with New Mdic2, How do I fix it...?
    The world would be better without

    !!!!!!!!!!!YOU!!!!!!!!!

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well saving the progress is really easy just save the values of all your game variables
    to open the file just load it and fill the variables back up with those values
    for sound just use DirectSound
    www.vbexplorer.com/directx4vb should explain it all
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Location
    Ya don't wanna know...
    Posts
    25
    Tx,
    But you lost me in the midle of the saving part, please explain (easy!!!!!!!!!!!!!!!!!!)
    The world would be better without

    !!!!!!!!!!!YOU!!!!!!!!!

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well I am sure your game has a lot of variables
    if you think about it the values of the game represent the games actual state.
    So all you need to do is save those variables to a file. It works the same as saving text.
    now you can open the file again and read the values back into the variables and continue from where you saved.
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    make sure ya use binary files instead of text, so no one can change it around~!
    To understand recursion, one must first understand the concept of recursion.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Location
    Ya don't wanna know...
    Posts
    25
    Never mind the text-saving prob.,
    found it myself
    tx for the other stuff :-)
    The world would be better without

    !!!!!!!!!!!YOU!!!!!!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width