How do I set fullscreen scaling to crop mode?

Get help using Construct 3!

Post » Sat Jul 29, 2017 3:16 am

For Construct 2 I designed most things with crop mode in mind but I can't find the option to set it in C3.
If I kept using C3 would I have to choose between supporting lower resolutions or allowing players to make use of a higher resolution to hide less stuff behind submenus and such?
B
17
S
6
G
1
Posts: 41
Reputation: 1,725

Post » Wed Aug 30, 2017 11:33 pm

I also want crop scaling. I added it to the suggestions site. https://construct3.ideas.aha.io/ideas/C3-I-303
B
48
S
19
G
3
Posts: 20
Reputation: 4,400

Post » Thu Aug 31, 2017 7:38 am

I had the same issue when I moved to C3. To solve this problem I did this:

1. Set Fullscreen-Scale to (OFF)

2. Insert (Browser)

3. Create an event on Browser Resize

4. Create an Action (Browser > Execute Javascript) set global variables to height/width as seen below.

Image



Then, in the index.html I added this tiny function

Code: Select all
<script type="text/javascript">
var browser_h = 0;
var browser_w = 0;

function browser_s() {
    browser_w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
    browser_h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
}

browser_s()
</script>


You now have, fullscreen that is cropped.
B
14
S
2
Posts: 67
Reputation: 2,044


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 1 guest