Users Saving Games?

Reply

Join Date: Jul 2004
Posts: 38
Reputation: MoNkEe is an unknown quantity at this point 
Solved Threads: 0
MoNkEe's Avatar
MoNkEe MoNkEe is offline Offline
Light Poster

Users Saving Games?

 
0
  #1
Jul 10th, 2004
First off, I wanna say, I'm not a conventional student, posting homework problems. I am a student, in the fact that I am learning BASIC/Qbasic. But I'm not going to school to learn it, just kinda feeling my way around learning. If that makes sense?

The main reason I am learning it is because I am trying to make a text-based adventure game for my father. Some of you may have played his games in the past, he use to make text-based games, way back when. Which of course is why I'm making him a text-based game for his birthday.

That being said, I have just about got the game completed, except for, what I see as, a crucial part. I'm not sure how to program it so that the user can save the game, and come back to it later? I've looked around online and found nothing that seems to answer my question. And unfortunately I've procrastinated on finding this information out till now, so I can't get a book at the library on it... His birthday is tomorrow (well today, technically), and I'm hoping to have this complete by sunday. So if anyone has any help for me I'd *greatly* appreciate it!

Thanks in advance!,
MoNkEe
One of A Kind Gifts For One Of A Kind People!

"I like nonsense. It wakes up the brain cells. Fantasy is a necessary ingredient in living." (Dr. Seuss)

"Sometimes to do what's right, you have to give up on things you want most, even your dreams." - Spidey 2
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 38
Reputation: MoNkEe is an unknown quantity at this point 
Solved Threads: 0
MoNkEe's Avatar
MoNkEe MoNkEe is offline Offline
Light Poster

Re: Users Saving Games?

 
0
  #2
Jul 10th, 2004
Whoops, forgot to mention I am using QBASIC to do this ... not Visual Basic (not sure if that makes a difference?) ... Thanks again for any input!! And for helping to point me in the right direction!
One of A Kind Gifts For One Of A Kind People!

"I like nonsense. It wakes up the brain cells. Fantasy is a necessary ingredient in living." (Dr. Seuss)

"Sometimes to do what's right, you have to give up on things you want most, even your dreams." - Spidey 2
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 17
Reputation: cypher is an unknown quantity at this point 
Solved Threads: 0
cypher cypher is offline Offline
Newbie Poster

Re: Users Saving Games?

 
0
  #3
Jul 10th, 2004
Saving games is a matter of saving all of your variables that pertain to items, player status, location, events, etc to a file. This can easily be done with the OPEN statement to ope a file, and CLOSE to close it.

When I taught myself QBasic, I found that the best place to find answers was from the QB help. Look up the OPEN ... AS ... FOR BINARY entry. That's probably what you want. Be sure when you load a game that you read the data in the same order that you wrote it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 38
Reputation: MoNkEe is an unknown quantity at this point 
Solved Threads: 0
MoNkEe's Avatar
MoNkEe MoNkEe is offline Offline
Light Poster

Re: Users Saving Games?

 
0
  #4
Jul 14th, 2004
just wanted to say thank you for suggesting I check out Qbasic's help!! ... WoW!! I've learned so much more that way in just a few hours, then I had searching the net for tutorials and such... Thank you so much! ....

... and now back to your regularly scheduled answers

I am curious what you meant though by being sure I read the data in the same order I wrote it?? Thanks ahead of time for the info!

- MoNkEe
One of A Kind Gifts For One Of A Kind People!

"I like nonsense. It wakes up the brain cells. Fantasy is a necessary ingredient in living." (Dr. Seuss)

"Sometimes to do what's right, you have to give up on things you want most, even your dreams." - Spidey 2
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: Users Saving Games?

 
0
  #5
Jul 14th, 2004
Let's say you save your data (example data here) in this order:

Score
Number of Lives
Current Weapon
Screen location
Level

You then want to read in your data in the same order, so that you don't get 1,000,389 for the number of lives and not the score.
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC