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

686 visits, 1,417 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&");"

  • 0 Comments

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