[Solved] How do I change fullscreen mode in html folder?

Get help using Construct 2

Post » Thu May 12, 2016 9:13 am

Hey guys!
I have a game and i export as html with "Fullscreen in browser" as "Letterbox scale" setting.
So, my question is: What line need to search on "c2runtime.js" or "data.js" or some file to edit manually the setting from "Letterbox scale" to "Scale outer" for example?
Thank you!!!
Last edited by odiusfly on Fri May 13, 2016 5:42 am, edited 1 time in total.
B
52
S
32
G
13
Posts: 241
Reputation: 11,831

Post » Thu May 12, 2016 12:12 pm

Why do you have to do this? Can't you just set those setting in C2 and re-export?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Thu May 12, 2016 1:50 pm

open data.js in text editor..scroll to end of json string
and after window size(480,640(in my case))
"media/",false,480,640, 4, true,true,true,"1.0.0.0",true,false,4,1,26,false,true,1,true,"New project",0,[]]}

there is a number for the Fullscreen scaling (0 or 1 | 2 | 3 | 4 | 5 ).....I think the number 3 is for "Scale outer"

I really don't know... is this the only place that determines scaling..
I've never tried this before...and..... I'm too lazy to try it now(to upload game..and test..)..
so...
as Twin Blazar said re-export is best solution...
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Fri May 13, 2016 4:30 am

@ korbaach
Thank you for this tip, i will try it!!! ; -)

Edit: All good, big thanks!!!
B
52
S
32
G
13
Posts: 241
Reputation: 11,831


Return to How do I....?

Who is online

Users browsing this forum: evillair, mongoose665, OBLIVION, Yahoo [Bot] and 68 guests