Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 23rd, 2006, 7:09 AM   #1
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
game in visual

ok i am making a game in visual basic and want to know how if i were wanting to save a users game how i would do that and then store there name in a listbox so when they click on there name there game will load
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 8:15 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Save all the game data to a file. When you start the program up, load all the data from the file. Easy.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 23rd, 2006, 2:49 PM   #3
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
what kind of file do you mean i am to save it in?
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 2:51 PM   #4
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
or could you give me the code
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 2:56 PM   #5
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
oh and not to be a pest but can i make my game then have add ins for the game like that would add a new topic or something like that?
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 3:27 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It's your game. Do what you like with it.

You're writing a game, so I'm going to assume you know how to handle files. Open up your save file, and write everything you need to to it - the number of lives you have, how many points you've got, whereabouts you are, etc. If you want to have multiple saved games, you can use multiple files.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 23rd, 2006, 3:34 PM   #7
gumbyman31
Newbie
 
Join Date: May 2006
Location: Inside
Posts: 14
Rep Power: 0 gumbyman31 is on a distinguished road
Send a message via AIM to gumbyman31
Any type of file. I've played games that store all of the data to a simple .INI file. Of course this made cheating easy, but it worked.
__________________
Use the best: Linux for servers, Mac for graphics, Windows for Solitaire.
gumbyman31 is offline   Reply With Quote
Old May 23rd, 2006, 3:53 PM   #8
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
im really dissapointed to tell you this but (i dont know how to handle files)
Donnie is offline   Reply With Quote
Old May 23rd, 2006, 4:18 PM   #9
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Quote:
Originally Posted by Donnie
im really dissapointed to tell you this but (i dont know how to handle files)
Donnie.....Donnie.......Donnie................dude..don't run before you can walk (or something like that)..........learn the basic first.............is like some trying to build a house without any foundations..................if you go head first into a langauge without knowing the basics............it is totaly going to put you off the whole language............happened to me.............so i though i just warn you
kruptof is offline   Reply With Quote
Old May 23rd, 2006, 6:28 PM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
kruptof, kruptof, kruptof... write in sentences, will ya? :p

His message is clear enough, I guess. Donnie, as kruptof said, don't run before you can walk. File-handling is useful in any language, and I advise learning how to work it.

This looks pretty good.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:31 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC