Game Development Community

How can I create player profiles for my games?

by B. Spencer · in Torque Game Builder · 03/31/2009 (2:36 am) · 1 replies

Hello,

Just wondering if someone had some coding tips on how to create player profiles? This is when the gamer can save his or her name, score, and be able to load and save there game.

Being able to load and save is essential nowadays with all video games, and casual games. Especially when a person can personalize there profile and compare or compete with friends.

Any information on this would be much appreciated.

Thank You...


#1
03/31/2009 (3:28 am)
I would use a directory of profiles, with a file per player and their personal settings. Just walk through the directory, and grab the names from each file (either in the filename, or a setting inside the file).

The profile could either be some settings in a format of your own choosing, or TorqueScript with variables. If the latter, filename=playername would probably be best.

This thread covers file operations for generic files:
http://www.garagegames.com/community/forums/viewthread/49921