SOLVED Problem with the Scale ratio and the resolution of my portrait mobile game

Hello everyone, recently I have been having some issues with the resolution of my game, it only has one room at the moment , which width and height values are 1080x 1920, in some devices like for example my phone which resolution is 1080x 2400 some horrible black bars appear, is there any way to fix this in GMS2 v2.3 ? I have been seeing some videos related to this but trying their solutions nothing happens.
 

Rusty

Member
If memory serves the setting the view to the screen resolution is fine as long as the port isn't bigger than the room.

camera_set_view_size(view_camera,display_get_width(),display_get_height())
 
Top