iPhone SDK- How To Add Game Center To Your App
Uploader Comments (brandflakeapps)
Top Comments
-
Please read: I would like it so the add score goes up by 1 instead of 4 how do I do that??! Thanks
All Comments (40)
-
@RjProgrammes Just use the following code but alter it to suit your variable and string.
int i;
NSString* string;
i = [string intValue];
-
@James161997 Very simple, just replace the '4' in the add score IBAction with a '1' and then it will go up in '1' instead of '4'.
You could just replace the code with this though : (VariableName) += 1;
Hope that helps :)
-
hi mate, i have made a game but the score is a NNString, how would i change it to ScoreInt?
-
can u give us the text thing of witch you copied of plz
-
I just want to say thank you soooooooo much.
-
Leaderboard is not showing here.. :S
-
Add me *RUXIIST*
-
very nice tutorial ;)
-
everything is ok but when I try it on ios5 simulator the application doesnt submit the score in real to Gamecenter altough it sends a log of successful sumbission to console
-
@James161997 you can do it with a timer by submitting it in every 5 minutes for example. you should call submitscore function
it didnt work at the end because you selected "Ascending" in seting up Game Center (iTunes Connect) . Thanks a lot for the tutorial ;)
BakyR4 1 year ago 3
@BakyR4 o thank you so much!
brandflakeapps 1 year ago