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

3
  • 9 favourites

Index

Attached Files

The following files have been attached to this tutorial:

.zip

Stats

3,818 visits, 6,738 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Events in Construct 3

Objects you need are: Browser Object (+ Keyboard to increase score)

The Browser Object is necessary because you need to execute javascript.

The function is:

kongregate.stats.submit(Statname,value)

You need to add a ";" at the end for it to work!

(Function from here: Kongregate Developer: docs.kongregate.com/docs/javascript-api)

So the Browser Action is:

Execute javascript: "kongregate.stats.submit( 'Highscore' ,100);"

(You have to use ' ' because " " would stop the string.)

If you want to submit something else:

Execute javascript: "kongregate.stats.submit( '"&STATNAME&"',"&VALUE&");"

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Thank you very much!

    I noticed you put the variable 'Score' between quotation marks and two ampersands, as: "&Score&"