"Users" for each game? Tracking achievements?
![freerangeeggheads](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Are there any tutorials for how to create "users" for each game that will track that person's high scores, achievements, etc, and will stay there after the game has been closed and restarted? I know the old school way of doing this by writing to an external file in C and then parsing the data on reimport but I'm hoping there's an easier way to do that here. I'm completely new to GS! Thanks!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
This series of videos may be what you need.
And you may want to bookmark the whole GameSalad Cookbook page as well, very informative material.
http://www.youtube.com/user/GameSaladCookbook
Welcome again, and it sounds like you know what you're doing, so I can't wait to see the stuff you come up with!
For instance, if I wanted to create different difficulty levels is there any way to do THIS in GS:
if (user.level==1)
this happens or this state changes;
if (user.level==2)
this happens or this state changes;
etc? I am just kind of lost with how "attributes" work in GS.
if (user.level==1)
this happens or this state changes;
if (user.level==2)
this happens or this state changes;
What you are describing here Is basically how attributes work in GameSalad. There is a wiki page that will describe all the different types of attributes, and what they are for, and a lot of other information you may be looking for.
http://gamesalad.com/wiki/
The specific page for the attribute description is here...
http://gamesalad.com/wiki/how_tos:gsc_use_attributes
and here.
http://gamesalad.com/wiki/how_tos:gsc_create_attribute#what_is_an_attribute
The "How To" page on the wiki is a great place to browse around as well.
Yes, attributes are your variables in GS. And when you create rules those are your IF statements. There is even an Otherwise with each rule so you can have an ELSE as well.
As for the difficulty levels, you'll see there are Game Attribues as well, which are close to Global Variables and are probably the best place to have a difficulty level set.
And bookmark what SlickZero has posted, these links are invaluable for learning GS. And if you can't find an answer, just ask, the users on this forum are phenomenal at helping each other.
I've looked through the cookbook but i still can't figure out the Users questions.
Is there a way in Game Salad to track achievements and scores, etc, for individual users? So when the game starts up you see "What's your name" and then you get a user name and then next time you click your name and all your information is saved.
Is this possible in GS?
so what you could do, it at the main menu, they choose which profile they want to sign on. And as you would normally save score attributes, you would do it to every account. so like this
if name1 is playing, name2 name3 and name4 are off. get it?
and just record the attributes for each account.
So currentProfile="user1" means all data is then saved to currentProfile.attributeName instead of user1.attributeName to avoid having code for every single user profile? How could this be done in GS?