How do I Stretch to iFrame?

Get help using Construct 2

Post » Thu Jul 02, 2015 6:29 pm

I'm trying to put my game into an iFrame.
But The iFrame I'm trying to put it in have a different Size Ratio so I'm seeing a black boarder to the sides (or Top and Bottom, base on width and height).

How can I get rid of those black sides without setting the Window Size in Construct 2? I want to put them inside different type of iFrame sizes.
B
6
S
2
Posts: 16
Reputation: 494

Post » Fri Jul 03, 2015 5:20 am

I would turn that concept around.
You are trying to shape the game screen to your iframe.

I would:

After exporting, change the CSS in the index.html file to make the iframe the same ratio as the project viewport.


If that is not an option, the best approach to get rid of borders is by using scale outer.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 24 guests