How do I not scale a leadbolt ad

Get help using Construct 2

Post » Sat Aug 16, 2014 11:27 am

I have leadbolt ads in my game that I export via crosswalk. They are in an iframe and look fine in my starting resolution of 1366, 768. However when I export the game to mobile 720p they look like they are getting cut off. I assume this is because they get scaled down to 720p.

Thanks
B
5
S
1
Posts: 41
Reputation: 455

Post » Sat Aug 16, 2014 11:47 am

I guess your ad is bigger then your iframe is when the game is scaled..
Resizing your iframe should do the trick..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Aug 16, 2014 1:43 pm

On what trigger should I resize though. its 468, 60 now and in the game it shrinks to an unknown amount. How do i tell the program I know you want to scale this down but can we keep this one true to the pixels?
B
5
S
1
Posts: 41
Reputation: 455

Post » Sat Aug 16, 2014 4:00 pm

So with some more research it seems to affect only systems that have pixel ratios that are higher than 1. Is there any way to work with pixel ratio?
B
5
S
1
Posts: 41
Reputation: 455

Post » Sat Aug 16, 2014 5:20 pm

Ok I solved this. First you need to add an ad to your android app because they will all be SDK and when you add a new ad to your android game you select HTML. Now you want to edit that ad to be auto stretching. Then do this tutorial https://www.scirra.com/tutorials/876/ho ... orted-game . And when you make your ads.html file you want to set margins to 0 in css. I just used the Normalize.css file I use for my site. Now you want to turn scrolling off on your iframe and you can set it to whatever size you see fit.
B
5
S
1
Posts: 41
Reputation: 455


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 9 guests