Implement Spilgames API

0 favourites
From the Asset Store
Integrate Telegram Payments API into your Construct 3 projects for seamless in-app payment processing.
  • I do not understand how install that package...

    i am rather new to the use of api's and i need to add it to my game just this one you are saying.. so..

    can someone explain the steps to do so?

    for example you talked that you need to use the one in the page of the splitgames...how do i do that or the other..

    do i have to manually touch the html once its ready?

    and what did you mean about do it when its all loaded.

    please answer me or send a pm...

  • Finally managed to install the package of this link.

    I'm making a example capx right now but in the meantime:

    Here's a little plugin I made: (i didn ot have permisions but is the same that skyhunter93 set).

    The only thing it does is adding the spilgames API to the index.html so you don't have to add it manually each time you export your project. It's a huge time saver.

    I talked with spilgames and they said that the ads are not showing right now because their API isn't complete right now and are testing things. So there is no way for us to test it right now. I suppose they use a local environment on their side to test the ads.

    Actually my implementation is pretty similar to the one bilgekaan did. but you are now seeing the ads because of what I said.

    but still not sure of what it does or how to use it..

    will it also make the functions needed to stop and resume?

    and if so what are the names of the variables?

    if i have to do that part what file do i have to open to add it?

    do i have to open after presenting and making all the game?

    (ignore my first request as its obsolete but could not remove it)

  • PixelRebirth skyhunter93 bilgekaan Have any of you managed to get this working and have it successfully submitted to them? I am in contact with them, but before I submit I want to make sure that it actually works :)

  • I think skyhunter93 should have the proper feedback from Spilgames by now, but he doesn't seem to be around.

    Unfortunately I will also have to submit my game without knowing if the implementation will work properly and be accepted.

    stelarfox Actually all the information is available in this thread if you read the posts carefully.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey guys my game is at QA right now.

    After the QA I will tell you how it goes.

  • My game just passed QA! I had no problem using the library embedded on the plugin :)

  • ok you passed the QA great... now can you explain all the steps? i managed to get the "advertise" but still nothing of the rest works please help.

    (i know really little of html or java so can you explain where to seat each part? and what is required?)

  • I would be interested to know what kind of revenue you generate once you game starts getting some plays.

  • Hello again.. i noticed that only the first inclusion works

    i mean what i have to put into the html

    but i have seen that certain functions need to be set in other .js files...

    now the real problem is...in which one.

    should be a totally new one. or have to be edited each time after i export the project?

    I mean i tried to say all it says but is so bad explained i really have no idea.

  • skyhunter93: Can you please share a test capx of how you implemented the Spilgames api. It would be really helpful for us to know the proper steps, than experimenting out by ourselves. Thanx.

  • My game just passed QA! I had no problem using the library embedded on the plugin :)

    Great! Good to know, so the implementation is fine!

    skyhunter93: Can you please share a test capx of how you implemented the Spilgames api. It would be really helpful for us to know the proper steps, than experimenting out by ourselves. Thanx.

    All the proper steps are actually evident from reading the posts in this thread carefully. Skyhunter even posted the plugin he used, which includes the API js file for you.

    You need to define the fnPause and fnResume functions changing some variables. And use the execute javascript action and expression within C2.

    It's all described in this very thread. <img src="smileys/smiley2.gif" border="0" align="middle">

    EDIT: You can also use the preview version of my plugin which I'm currently using to submit my game. Download

  • skyhunter93... does your code use all or just advertising?

    because that part works for me but nothing else.. and I at least tried to do exactly what you say you did...

    the problem is, should all the code be in the index.html?

    and a lot of times you say "capx" what does that mean i never find a file with that name.

  • and a lot of times you say "capx" what does that mean i never find a file with that name.

    Capx is the file extension of a Construct 2 project file. <img src="smileys/smiley12.gif" border="0" align="middle" />

    the problem is, should all the code be in the index.html?

    Custom javascript should be added within a script tag in the index.html file itself or in an included js file.

    skyhunter93... does your code use all or just advertising?

    because that part works for me but nothing else.. and I at least tried to do exactly what you say you did...

    What do you mean exactly by nothing else? There isn't much the API does besides showing an ad. Do you mean loading the branding image information?

    You could also try using my plugin I linked above, which should work without having to add any javascript at all.

  • ok thanks about the capx file

    so just adding the line to the index.html only "calls" the other .js file now I get it

    well the api its said to have 3 things...

    the advertising...(which is the stop and resume)..

    to really Load the api...

    and finally the Branding Logo.

    that last part not sure was mentioned on here..

  • to really Load the api...

    and finally the Branding Logo.

    that last part not sure was mentioned on here..

    You're right, the branding logo wasn't covered in this discussion yet. Depending on the terms of your contract you might not even have to use this part of the API.

    However this functionality is part of my plugin. You use the "Get logo" action and then can return the image address and link from expressions.

    I didn't test this yet, but I imagine it should work. When I can confirm it all working myself I will make a thread with a little documentation for the plugin.

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)