• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

iOS Can't make Achievements work on iOS

sman

Member
Hi,

I created achievements for my game in App Store Connect, but with GMS2:
  • when I run achievement_load_progress() (like explained here) I get the error "Error attempting to load our achievements".
  • when I run achievement_show_achievements(), it opens the leaderboards page instead of the achievements page
Is it a GMS2 bug or did I forget something?
 
Last edited:

Still57

Member
If you are trying to show the achievements to the user you just can't show them directly (as far as I can remember from GMS1.4). You'll have to show the leaderboards and the user has to make their way to the achievements tab.

If you are trying to get achievements data from Game Center then you forgot to login to Game Center before you called the load progress function. That is why you are getting that "Error attempting to load our achievements" error. However, even when you are logged into game center it still fails to fetch the achievements for some reason. It always returns 0 for the number of entries.

This thread should be in the GMS2 Community Tech forum
 

Still57

Member
Did some more testing: It will fail to fetch any achievements if none are completed or do not have progress
 
Top