How to implement FGL HTML5 SDK ?

Discussion and feedback on Construct 2

Post » Tue Feb 11, 2014 4:17 pm

Success with Cross Promotion and Ads.



B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Tue Feb 11, 2014 4:17 pm

[QUOTE=BluePhaze] Has anyone gotten the API fully working in a C2 game?[/QUOTE]

I managed to get the 1.2 api 100% working and got it to do preview from C2.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Tue Feb 11, 2014 4:23 pm

Here are the changes I made to the index.html file after export.

B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Tue Feb 11, 2014 4:24 pm

@jayderyu

Are you using a plugin, if so which one?
B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Wed Feb 12, 2014 3:39 am

@ArcadEd
I didn't use any plugins. To release to FGL I suspect the developer would still have to hack the index. But since my fgl capx api works from preiview mode it's convenient for testing.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Feb 13, 2014 7:14 pm

How did you make it work on preview?
I changed the C:\Program Files\Construct 2\exporters\html5\templates preview.html and preview-fs .html to include the fgl.js and start game, but it throws error on fgl parts.

For the exports it works perfect.
[size=200]1. Best Construct 2 course :HERE.10$!

2. 155 games source codes for sale on scrira store 12,86$each. PM me if interested to speed up the uploading process.
[/size
B
32
S
8
G
4
Posts: 148
Reputation: 3,713

Post » Fri Feb 14, 2014 6:15 pm

Hi... so do we have a reliable way to implement the new 1.2 api? Previously I used this: https://www.scirra.com/tutorials/790/implement-fgl-html-5-api-in-construct-2 and it worked like a charm. Now it seems we need another plugin?
B
16
S
7
G
1
Posts: 155
Reputation: 3,119

Post » Fri Feb 14, 2014 7:56 pm

For the new version I replaced the fgl.js with the new one and modify line 416 to:




self.overlay. self.overlay.ontouchend = function(){

so that the api to work on mobiles.


But beware they haven't payed me for games I submitted on 6 january so the whole thing might be a big fake offer.

paala2014-02-14 19:57:18
[size=200]1. Best Construct 2 course :HERE.10$!

2. 155 games source codes for sale on scrira store 12,86$each. PM me if interested to speed up the uploading process.
[/size
B
32
S
8
G
4
Posts: 148
Reputation: 3,713

Post » Fri Feb 14, 2014 10:24 pm

Nope, they've payed me for a game so I can confirm this is legit. Took a while with the payment though. Also they've been making some changes to the submission process so there might be a delay, too.
B
16
S
7
G
1
Posts: 155
Reputation: 3,119

Post » Fri Feb 14, 2014 10:37 pm

How well do they pay? Is it based on impressions, or for submitting a game with the API in place?
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: wmnjunior, Zamargo and 2 guests