![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
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
|
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Save all the game data to a file. When you start the program up, load all the data from the file. Easy.
![]() |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
what kind of file do you mean i am to save it in?
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
or could you give me the code
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
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?
|
|
|
|
|
|
#6 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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. |
|
|
|
|
|
#7 |
|
Newbie
|
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. |
|
|
|
|
|
#8 |
|
Newbie
Join Date: May 2006
Posts: 10
Rep Power: 0
![]() |
im really dissapointed to tell you this but (i dont know how to handle files)
|
|
|
|
|
|
#9 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#10 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|