Displaying a web page inside a game

Get help using Construct 2

Post » Wed Oct 12, 2011 3:33 am

I want to insert adds in a game but I want the adds that are displayed to be located on the internet in the form of a normal .html web page so they can easily be changed later without having to alter the game. The basic idea is to load the web page into the layout inside the game when I want to display the add.

How would I go about doing this?

Jason
B
18
S
7
G
5
Posts: 62
Reputation: 4,410

Post » Wed Oct 12, 2011 12:29 pm

An easier way is you add your adverts to the exported index.html file and use CSS to position them over or near the canvas.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu Oct 13, 2011 3:25 am

When I uploaded the game to a portal would I have control over the index.html file where the game was located at on their server in order to do this?

Jason
B
18
S
7
G
5
Posts: 62
Reputation: 4,410

Post » Thu Oct 13, 2011 8:46 am

No, I guess not, but then game portals usually provide ads for you anyway don't they?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Oct 14, 2011 4:29 am

Game portals place their own adds on the same page as the game but not inside the game unless you import and use their API. A few game portals have profit sharing on these same page adds but most do not.

If I were able to display a fully functional web page inside the game I could use my own ads or use the displayed web page to display third party adds in the game.

In addition I could also give away prizes (such as free downloads) for winning the game or getting a certain score. The displayed web page would either contain these prizes or links to these prizes.

Jason
B
18
S
7
G
5
Posts: 62
Reputation: 4,410


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 33 guests