![]() |
|
![]() |
|
|
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 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5
![]() |
Okay, things you need to know to write a game include general program logic and basic I/O (you need input from the user, after all). You also need to learn how to validate that input, so that your program doesn't puke on its shoes when the user does something 'wrong' (which users do quite often).
Other things that you will likely need to learn are:
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|