Do I have a game already made to post it or does it have the program to make it as you post it?
[Kongregate API] AS2 Integration page 9 (locked)
|
|
|
|
|
hello I got some problem with the API AS2 i write [ first frame ] _root.kongregateServices.connect(); and when the game it’s over root.kongregateStats.submit(“HighScore”,root.hs); but doesn’t work do you know why ? thx |
|
|
hello I got some problem with the API AS2 i write [ first frame ] _root.kongregateServices.connect(); and when the game it’s over root.kongregateStats.submit(“HighScore”,_root.hs); but doesn’t work do you know why ? thx |
|
|
That should be But since it’s on the first frame you shouldn’t need the |
|
|
no is not the _ the problem but thx |
|
|
Originally posted by Morticella: Well it will not work with no Although, often the API doesn’t work. This was when I was testing it out in a game but nothing worked. |
|
|
yeah i know that doen’t work without _ but i mean that is only an error on the post the error arrive on the debug when i publish the file in swf. |
|
|
This post has been removed by an administrator or moderator
|
|
|
yeah nothing new in the post [ it’s like the first one ] but doesn’t work there is something wrong or some stuff i didn’t understaind. this post is useless but.. anyway thanks if someone konw some new stuff please post here. |
|
|
Like in kongregate tutorial put this to function onLoad of the object that exists from beginning: When let’s say your hero dies put this in place where this happens: Are you sure “hs” is a variable tracking your score? Another idea did you add this variable to Statistics API when you upload a game? (I am not sure if this is needed but worth trying) |
|
|
This post has been removed by an administrator or moderator
|
|
|
I need some help implementing my API on Brick Breaker Classic var score:Number = 0; (My variable for the score) When adding the API codes in, i publish a preview which doesnt work at all. I dont know what to put in the _root.kongregateStats line, game doesnt work even when i have no script errors. Anyone help with coding ? |
|
|
ok i got the code to work ^^ I hope it does connect and submit to kongregate correctly. |
|
|
|
|
|
this is what i have someone tell me how to fix so API will work plz |
|
|
try putting quotes around the name like this: |
Loading