Hey, so here is the situation. I have this code that basically logs the user in if its not already logged in and then posts the score. I have this code running on a timer. Problem is, when it logs in, it seems to skip the achievement_post_score bit. It works fine if the user is already logged in. Same thing with the button to show the leaderboard, if the user is not logged in, it logs in but won't show the board. It does show the board on second iteration.
here is the code for posting
if(achievement_available()){
if(!achievement_login_status()) achievement_login();
achievement_post_score(myid,global.playerscore);
}
any help would be appreciated.
One solution to this would be to log the user in whenever the game starts, but that seems to be intrusive so I was wondering if there were some other ways of doing it.
here is the code for posting
if(achievement_available()){
if(!achievement_login_status()) achievement_login();
achievement_post_score(myid,global.playerscore);
}
any help would be appreciated.
One solution to this would be to log the user in whenever the game starts, but that seems to be intrusive so I was wondering if there were some other ways of doing it.