Hey All,
So i have set up NSUserDefaults in a GameConfigs file and it works perfectly but my question is. is there a way to load the stats kind of like this:
player1Sprite.speed = [[SnowFightConfigs get] [NSString stringWithFormat:@"%@Speed.png", play1name]];
So what i want to do is get the property *playername*speed where playername is a string that i set earlier when they chose a character.
so if the NSString play1name is john i would want it to get this:
player1Sprite.speed = [[SnowFightConfigs get] johnSpeed];
How could i do this? I asked on iPhonedevsdk but no one ever answers there. So im asking here
Thanks
-Lars