Scaling problems

Hi, everyone. I have a problem that when i try to scale the game, I listen the event “resize”, and i call the function layout() which used for relayout the game. Iin this function, i have a global variable and it is the ratio of the changes, basiclly, i uses this ratio to change the size of every gameobjects, and every location of that objects, also the moving distance of those objects. I am just wondering if there exist an other method that can help me to scale those game objects including size, location, and moving distances instead of using the ratio that i calculated in almost every sentences that objects included.

:wave:

I don’t think so, but an alternative is zooming/scrolling cameras.

I might be misunderstanding your question, but isn’t this what

config.scale: {
        mode: Phaser.Scale.FIT,
    },

is for?