Re: What am i missing in bgt
Also, saving game data will require some system to save data to a file and another system to read and parse that data back out.
A file might look something like this:
save.dat (the .dat extension won't matter. It's just a text file. You can use .gsv or anything you want.)
name=Stephen
high_score=1,000
number_of_games_played=4
...And so on.
Then you'd have to read that file back into the program and split each line back into appropriate variables by the equals '=' sign.
That's just a simple method. In most published game projects you'll also want to explore ways to encrypt your game data so people can't cheat and such. But that's a whole other topic. Just get the basics working for now.
Get real familiar with the BGT help file. It has examples of everything the language is capable of and a fairly robust tutorial to get you started. It's the first resource you should be going to. Google should be the next. Plenty of people have already asked questions like that and there are plenty of answers already available. Keep your search query short and as simple as possible: "BGT saving files," "bgt splitting strings," "bgt opening files," "programming saving game data," etc.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector