GameMaker camera/view basics - iOS

M

MuddyMuddy

Guest
Hi, I have my room size and backgrounds iPad screen ratio. I would like to have 3 views or cameras that are static the whole time. One for iPad, one for iPhone and one for iPhone X aspect ratios.

What is the easiest way to accomplish this? With cameras, or view ports?
Using GMS2.


Many thanks
 
M

MuddyMuddy

Guest
So I'm trying the following –

Code:
phone = 1;

if phone = 0{
view_camera[0] = camera_create_view(0,0,1152,2493,0,-1,-1-1,0,0,0);
}

if phone = 1{
view_camera[0] = camera_create_view(0,269,1152,2048,0,-1,-1-1,0,0,0);
}
But I can't get the phone =1 setting to set that view/camera. its just showing the room viewport
 
Top