• 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!

Android Google Play name

Z

zejanis

Guest
So in my game i have a highscore leaderboard that uses the name of the user logged in with their google play account. I get that info from the achievement_login() generated async event like this:
Code:
if ds_map_exists(async_load, "id")
{
    switch(async_load[? "id"])
    {
        case achievement_our_info:
            global.PlayerName = async_load[? "name"];
            global.PlayerID = async_load[? "playerid"];
            show_debug_message("GOOGLE SERVICES: User " + global.PlayerName + " with ID " + string(global.PlayerID) + " has logged in");
        break;
    }
}
but the global.PlayerName that i get is the full name (First name and last name) not the username/nickname that appears when you login. Can I get the username not the full name?
I was following this official guide https://help.yoyogames.com/hc/en-us/articles/360004274212-Android-Google-Play-Services-Logging-In
 
Top