HELP Needed! Want to submit a single stat (Highscore)

Subscribe to HELP Needed! Want to submit a single stat (Highscore) 7 posts

Sign in to reply


 
avatar for MindGamer MindGamer 3 posts
Flag Post

I have made a small flash game, and the epic loser that I am, now I cannot even submit a highscore from my game. I am a newbie in game development, and hence all this ado for a seemingly simple task.. sigh.

I tried the following statements:

In the first frame of the flash file:
_root.kongregateServices.connect();

Then in the part where my game ends:
// KONGREGATE submit..
var finalScore:Number = _root.game.score;
_root.kongregateStats.submit( “Score”, finalScore );

However, when I upload the game, in the preview section, or in the final game uploaded, there is no tab for highscores that get updated on completion.. am I doing something wrong?

 
avatar for Jabor Jabor 11382 posts
Flag Post

You need to set up the statistics on the server before they can be submitted.

Check the documentation: http://www.kongregate.com/pages/statistics-api

 
avatar for MindGamer MindGamer 3 posts
Flag Post

I have done that..
The statistics page shows a single reported statistic (I chose it while uploading the game):
Name: Score
Type: Max
.. so what now?

 
avatar for Draco18s Draco18s 5885 posts
Flag Post

_root.kongregateStats.submit( “Score”, finalScore );

 
avatar for MindGamer MindGamer 3 posts
Flag Post
Originally posted by Draco18s:

_root.kongregateStats.submit( “Score”, finalScore );

Yes I am using exactly this statement, as I said in my first post. Still no good.

 
avatar for watkins577 watkins577 672 posts
Flag Post

Make sure its set as public or something… I dont know.. but something like that

 
avatar for Gl1tch Gl1tch 159 posts
Flag Post

Having the same problem =(

Sign in to reply