I have trouble saving playername, I followed Asteroids in less than 100 events and used the playername code to try to save the name, but it doesn't seem to work? And what do I do when I post to clay.io global text variable or webstorage?
What do you need to save the playername for? Are you sure you're logged on?
What are you trying to post?
trying to save playername so I can post score to clay.io without the clay.io popup, on website game the popup is ok, but it seems a bit slow on android.
I've had no probs with Clay.io but I did just use the standard leaderboards. How are you trying to post? What's the code you're currently using?
Develop games in your browser. Powerful, performant & highly capable.
I got it working. Error was in global variable, it was number instead of text.
I let user write name in textbox and use that name to post score to clay.io, when user wants to submit score, so it doesn't open the clay.io login box everytime the app is started. Although I'll add login button to the game too, so user's can login/create account in clay.io if they want to.