StainedFluff's Forum Posts

  • This worked! Thank you so much!

    for anyone with the same problem this is the code I used. (typescript)

    	
    // Import any other script files here, e.g.:
    // import * as myModule from "./mymodule.js";
    
    runOnStartup(async runtime =>
    {
    	// Code to run on the loading screen.
    	// Note layouts, objects etc. are not yet available.
    	
    	runtime.addEventListener("beforeprojectstart", () => OnBeforeProjectStart(runtime));
    });
    
    async function OnBeforeProjectStart(runtime : IRuntime)
    {
    	// Code to run just before 'On start of layout' on
    	// the first layout. Loading has finished and initial
    	// instances are created and available to use here.
    	
    	runtime.globalVars.contructscale = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--construct-scale')) || 1;
    }
    
    
    

    This allows you to have --construct-scale as a variable.

  • I'm making a mobile game and I need to move elements based on SafeAreaInset. The problem is that I do not know how to convert css pixels into in-game pixels. My game's default viewport size is 160x90, and I use letterbox scale with a specific set of aspect ratios to scale to different devices. The orientation is locked in landscape.

  • Yes, I am aware that setting the fullscreen quality to high does fix it, but it has several drawbacks. When setting the fullscreen quality to high a lot of effects work differently than how they would on low quality. And it does kind of make the game not pixel perfect.

    Thank you for your time by the way!

  • Here's a quick project showcasing the issue:

    drive.google.com/file/d/1yqPcAnUxM4fSvelsvtOP_DcMyGSHz6rQ/view

    You can recreate the bug by resizing the window.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello,

    I am experiencing issues where some pixels disappear when low fullscreen quality is paired with outer scaling.

    The viewport size is set to 160x90.

    I'd like to have the fullscreen quality set to low because I'm trying to achieve pixel perfect graphics. Is there any way to fix this?

    Thanks!