hello i am starting with a new one just to make the spilgames api work and not have to wait a lot for my game to load that is longer so started a blank one with just one button
i added just before the /head... (deleting the original </head> and <body>...
(code inside index.html)
[quote:117xy1vy]
<script type="text/javascript" src="http://cdn.gameplayer.io/api/js/game.js"></script>
</head>
<body>
<script>
GameAPI.loadAPI (function (apiInstance) {
});
loadAPI(fnCallback);
apiInstance.stop=0;
function isPaused() {
return apiInstance.stop;
};
function requestAdd() {
apiInstance.GameBreak.request(pauseGame, resumeGame);
};
function pauseGame() {
apiInstance.stop=1;
}
function resumeGame() {
apiInstance.stop=0;
}
</script>
and now the tester says the api is loaded but...nothing is is working at all not even the button
[attachment=0:117xy1vy][/attachment:117xy1vy]
that is the code in the construct... so my idea as you see is just to.
step one load the api...that the tool say it did..
step 2 i press the button so when that happen the function requestAdd is executed supposedly, that will trigger the other 2 functions changing the value to the apiInstance.stop that i read in every cicle but.. for some reason is not working because is not showing me any text...
can someone help?