Forum QuickConnect Saving User Scores

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Saving User Scores

Postby mfranzs » September 11th, 2010, 12:46 am

Is it possible to save and then retrieve user statistics using SimpleUsers? If not, then I am not really seeing how this feature is helpful... Sorry dev's
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am

Re: Saving User Scores

Postby Henrik » September 11th, 2010, 12:38 pm

What kind of statistics are you looking for?
Henrik
.IO
 
Posts: 1840
Joined: January 4th, 2010, 1:53 pm

Re: Saving User Scores

Postby mfranzs » September 11th, 2010, 2:13 pm

Simple numbers like... kills, levels won, titles unlocked, and things like that.
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am

Re: Saving User Scores

Postby Henrik » September 13th, 2010, 8:32 am

You can't store statistics with SimpleUsers, you can only store some additional data at registration time for each user, and the only way to get this data is through exporting your users.

If you want to store data you should use BigDB, and in your case you can probably just use the convenience PlayerObject like this:

Code: Select all
loadMyPlayerObject(function(obj:DatabaseObject):void{
    obj.Kills = 47;
    obj.LevelsWon[12] = true;
    obj.save(); //Save changes
});
Henrik
.IO
 
Posts: 1840
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect