S
skullandbonesband
Guest
Hello.
I need to input a name for the record table in my game.
All was going fine, I used get_string to enter and it was ok on pc.
But when I compiled to android and tested it, it became ugly because it says that the function is deprecated (why don't shut it and let us use it?... ).
Anyway, I been trying to use get_string_async but it returns a number and not the name I entered.
Can you help me with a piece of code to get the name of the player with get_string_async and retrieve this string whatever it went, simply?
The "explanation" below didn't solve it, I didn't get it, is too complicated for my beginner level of understanding (but I was good in basic and pascal in the 80s...).
ARTICLE LINK:
Example
in the var name, I will store the string inputted and later add to var global.name which stores the name of the player with a current high score which is used to exhibit in the start screen (and later will be integrated into an array soon I understand how).
name = get_string_async("What's your name?","Anon");
How I take out the string inputted from the system?
Thank you in advance.
Happy new year!
I need to input a name for the record table in my game.
All was going fine, I used get_string to enter and it was ok on pc.
But when I compiled to android and tested it, it became ugly because it says that the function is deprecated (why don't shut it and let us use it?... ).
Anyway, I been trying to use get_string_async but it returns a number and not the name I entered.
Can you help me with a piece of code to get the name of the player with get_string_async and retrieve this string whatever it went, simply?
The "explanation" below didn't solve it, I didn't get it, is too complicated for my beginner level of understanding (but I was good in basic and pascal in the 80s...).
ARTICLE LINK:
Example
in the var name, I will store the string inputted and later add to var global.name which stores the name of the player with a current high score which is used to exhibit in the start screen (and later will be integrated into an array soon I understand how).
name = get_string_async("What's your name?","Anon");
How I take out the string inputted from the system?
Thank you in advance.
Happy new year!