C3: Submit Kongregate Statistic (e.g. Highscore) in HTML

Index

Attached Files

The following files have been attached to this tutorial:

.zip

kongregate.zip

Download now 395 KB

Stats

690 visits, 1,421 views

Translations

This tutorial hasn't been translated.

Tools

Change the index.html after exporting

after exporting open the index.html in Notepad++ (or some other program)

copy paste this before the </head> (you have to do this everytime you export your game)

    <script src='https://cdn1.kongregate.com/javascripts/kongregate_api.js'></script>
    
    <script type='text/javascript'>
    kongregateAPI.loadAPI(function(){
      window.kongregate = kongregateAPI.getAPI();
    });
    </script>

The Index.html should look something like this:

And that was it. You can now execute the javascript kongregate.stats.submit function in your Contruct Events and submit scores like that.

.ZIP

kongregate.zip

Download now 395 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!