YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

Central resolution management #3979

Open iampremo opened 1 year ago

iampremo commented 1 year ago

h2. Feature Request

Add a central resolution management window, which when enabled, overrides the room settings for cameras. It takes the camera size, viewport size, etc. and is where users will make their changes when they need. h2. Justification

You can do basic resolution management in the Room Settings, i.e. modify the camera size, viewport size, etc.

However it feels a bit “hidden” as you have to scroll down into the small Properties window in the Room Editor, and it’s also not scalable because each room has its own resolution properties.

The moment a user has to manage multiple rooms, they have to modify the resolution properties for each room if they want to make a change to the camera size, viewport size, camera speed, etc.

You can do “central” resolution management with code, but it’s not very beginner friendly:

{{var _width = 480;}} {{var _height = 270;}} {{var _scale = 2;}} {{surface_resize(application_surface, _width, _height);}}

{{window_set_size(_width_scale, _height_scale);}}

{{window_set_size(display_get_width()/2-(_width_scale)/2, display_get_height()/2-(_height_scale)/2);}}

{{var _camera = camera_create(...);}} {{view_enabled = true;}} {{view_visible[0] = true;}} {{view_camera[0] = _camera;}}

This also practically makes the resolution settings in the room editor redundant.

XanthorXIII commented 6 months ago

I would also like to add to this. Resolution Setup and Management is very tedious for GameMaker. Especially in the light of other tools where you set the resolution for a project at the beginning of the project, can manage it in properties of the project. I would like to see this removed from the rooms altogether and have as mentioned a central way to manage resolutions, also in conjunction this could be done with a new camera system that is easier to setup and doesn't require you to hit your head on the desk to remember how to set it up to get something to display.