B
Blakecubed
Guest
Hello!
I've been developing a game for the iOS export in GameMaker Studio 1.4 and I need to stretch the screen to fit any phone's aspect ratio. All the rooms are currently 640 x 960, so whenever I try to scale it on a phone that does not have a proportional ratio, black bars show up on the edges. I do not want to use the Full Scale feature (in Global Game Settings) because it stretches all the objects in the room. To solve the issue, I would like to be able to change the height of the room to the height of the phone's screen. However, when I use the room_set_height(<room>, display_get_height) function, the black bars still show up and objects spawn in the black bars. When I attempt to use surface_resize(application_surface, display_get_width, display_get_height); to resolve this, it just stretches all the objects and does the same thing as the Full Scale feature. How would you go about changing the room height so that the room can fit on any phone without black bars showing up?
Thanks in advance!
NOTE: All objects are randomly spawned inside the room when the room starts, so I use the entire room at once.
I've been developing a game for the iOS export in GameMaker Studio 1.4 and I need to stretch the screen to fit any phone's aspect ratio. All the rooms are currently 640 x 960, so whenever I try to scale it on a phone that does not have a proportional ratio, black bars show up on the edges. I do not want to use the Full Scale feature (in Global Game Settings) because it stretches all the objects in the room. To solve the issue, I would like to be able to change the height of the room to the height of the phone's screen. However, when I use the room_set_height(<room>, display_get_height) function, the black bars still show up and objects spawn in the black bars. When I attempt to use surface_resize(application_surface, display_get_width, display_get_height); to resolve this, it just stretches all the objects and does the same thing as the Full Scale feature. How would you go about changing the room height so that the room can fit on any phone without black bars showing up?
Thanks in advance!
NOTE: All objects are randomly spawned inside the room when the room starts, so I use the entire room at once.