Submit Highscore using keyboard only?

5 posts (showing 1-5)
laFunk

Market Level 4Community Level 3
142 posts

Is it possible to submit a highscore without touching the mouse?

The input text isn't focused when the scoreboard shows up and pressing enter doesn't submit the score, so users are forced to click. I can't find anything about it but I'm hoping there's a hidden way!

Also, a couple extra questions: can the input be populated with the last name entered? Is there any way to submit scores silently through API calls? 

posted 2015-10-19T19:27:19-07:00
laFunk

Market Level 4Community Level 3
142 posts

Hmmm it turns out using LevelVault's API I'll be able to do exactly what I want but I can't get it to work. 

I'm testing some very simple stuff (I initialize the gamersafe API and GamerSafe.api.levelVaultReady returns true):

GamerSafe.api.levelVaultCreateLevel( { title: "test", data: [10,10,20,10,10,20,10,10,20] } );
GamerSafe.api.onLevelVaultLevelCreated = function():void { trace("LEVEL CREATED"); };

But the "onLevelVaultLevelCreated" never gets called. 

What am I missing?

EDIT: Using the levelVaultRegisterPersistentErrorCallback, I see I'm getting the "Too many connections" error. No idea how to fix that though :S

posted 2015-10-20T12:24:41-07:00 | edited 2015-10-20T12:44:50-07:00
danishgoel

Market Level 5Community Level 6
545 posts

I remember there was some GamerSafe API that made it possible to do silent score submission and retrieval.

I used it in my game long time back (2013), not sure how it is nowadays, but you might be able to find something in their docs.

Yes, here it is, using function saveToScoreboard() :
https://www.gamersafe.com/documentation/index.php#saveToScoreboard()

posted 2015-10-20T16:50:51-07:00 | edited 2015-10-20T16:53:37-07:00
laFunk

Market Level 4Community Level 3
142 posts

That's perfect! Thanks very much! 

posted 2015-10-20T17:45:14-07:00
FoumartGames

Market Level 3Community Level 4
209 posts

I'm also implementing score submission at the moment, got it to work with anonymous players (without account in GS). But there is no equivalent to setRegistrationDefaults for the high score submission dialog.

posted 2015-10-28T14:20:31-07:00