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

4
  • 8 favourites

Index

Attached Files

The following files have been attached to this tutorial:

.zip

Stats

2,028 visits, 3,925 views

Translations

This tutorial hasn't been translated.

Tools

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&"