is it possible to use any Kongregate Api? like leaderboards or badges?
YES IT IS! It took me 4 hours to figure out and the joke is that I did it right at the first try, but I didn’t write an “S” to the “https” and it didn’t work lol…
So you probably know how to upload a game to kongregate, if not, that’s fine too. You can look it up in the tutorials, it is explained well.
When you “Export to web” your game (without minify, it won’t work on Kongregate), you get an “index.html” file. You need to open that up (with normal edit mode which is bad, or with sublime text editor or something similar program), than you need to write, or copy “” (without the “” at the start and end) this badboy after the first “”. This way you get acces to the api… And this is it lol. Nothing complicate, nothing hard work. (if it’s not working look at your addres bar and if it’s “http://kongregate.com” than remove the “s” from this code too like this: “” it has to have http/https like the site )
If you want to use the api, well that’s an another thing. I didn’t use it yet, I just figured out how to get it work and tested it out with this little code, what writes out the name of the user in a “text object” (I modyfied the text object to write out the variable tut don’t know why tut and that variable holds the username ): prntscr.com/lghthd
And I’m sorry, you probably use this program for not doing any programming, like me (not because I couldn’t learn, it’s just easier to make flash games with), but you can’t use the api without codes.
I hope I wrote it down in a way that even someone who knowes nothing about programming can use it, but even if you implent it, you can’t use it so… sorry. Maybe if I get used to the kongregateAPI I’ll write an article about how to use it:?:
There is Kongregate extension to submit score can, we use it to get players score too? If yes then we can create a turn based multiplayer game.