Under rating threshold (hideshow)
Not sure what you mean exactly, but once you connect and have your kongregate object, you just do something like "kongregate.stats.submit("Coins",1);"
See this (http://www.kongregate.com/forums/90-kongregate-apis/topics/199155-quickkong-easy-kong-api-integration) also for an easy way to use the Kong API.
If you're referring to the API Callback URL, that is only needed if you are running a kreds-enabled MMO and want us to notify you when a user makes a purchase.
Under rating threshold (hideshow)
how does i make this work? I've defined the stat I want, but I got stuck when i got to this page. What do I do to get it working?
You'll need to be connected to the javascript API if you want to use the Javascript Submit function. You can read about that here: http://www.kongregate.com/docs/api-overview/client-api.
Under rating threshold (hideshow)
hi.
I did everything as needed, i guess.
i used the QuickKong api, in local test i got the answer :
Kongregate API: IStatServices.submitStat(Level,2)
in the /statistics i created a max stat called Level. it is shown there then i check.
i also check "yes" for Display in leaderboards?.
When or where or how can i expect those high -score leader boards to appear next to my game.
or did i not understand something, is it just for saving the values, and then i have to create leader boards myself too?:)
If you set the "Display in Leaderboards" checkmark, a High Scores tab will replace the More Games tab to the right of your game within a few minutes of the first successful statistic submission. You will need to reload the game for the change to take place, and it can take more than a minute.
Under rating threshold (hideshow)
Stats aren't updating in "High Scores" tab in real time. Only updates (for the user currently playing) when browser is refreshed. Please help.
Stats in the leaderboard should only update when the current user's stat improves - other stats will not be shown in real time and will indeed require a refresh.
Under rating threshold (hideshow)
I used "_root.kongregateScores.submit(points);" as explained in AS2 API tutorial but it didn't work. I have uploaded the game today. http://www.kongregate.com/games/RandomDeveloper/Extreme-Clickz
Under rating threshold (hideshow)
How could we retrieve the value from the statName?
Is something like this: get(statName:String):Number exist?
I want to retrieve the highscore of the user.
Thanks in advance.
Under rating threshold (hideshow)
After reading through all of the help pages on the site, I'm still rather confused. Here's the situation: I have a game that's uploaded and playable. The game is a Unity game, hence a unity3d file was uploaded (and nothing else). A placeholder-statistic has been created here on the Kongregate game page. All the code in the project was written in C#, although we could add some Javascript if needed. Here's my question: How do I connect/download/access the statistics API from Unity? The code above seems to assume that we have some sort of Kongregate object - where did that come from? I've only seen that one could use the HTML shell in order to connect, but we're not using HTML since we're only submitting the unity3d file. Any help would be appreciated.
Under rating threshold (hideshow)
This is not working at all. The other part works fine, but I can't get any of the above stats examples to work for me at all.
I placed the Kongregate API in the first frame of the .fla file as instructed, and without trying to use any of the stats, I get a message when testing the game to indicate that the API is working. However, any attempt to use any of the stats like the ones in the example above, ends up having errors of some kind or another.
I send scores in my GameOver.as file, and when I put the code in to send scores to the leaderboard, I get "1120: Access of undefined property kongregate." What exactly would I need to do to make my GameOver.as utilize the kongregate variable that is on the first frame of the .fla file?