Hi, so i've tried tutorials on making cameras and everyone talks about them different, sets them up different.
Its just left me confused and disoriented.
I would love it if I could make a camera that has the viewport centered on a target (ex.the player) and that viewport be the size of the game window.
I would also love it if I could switch it to fullscreen keeping the resolution of the current resolution of the device being used.
and all of that work without needing the room size to be a certain aspect ratio.
I would love it if someone could explain to me how i could go about that.
Heres what I understand and have tried to use:
I have a persistent object named ctrl_camera.
in the create event Im defining variables to use in setting up the viewport that follows the camera
I know i have to use stuff like resizing the application surface and re-centering the window but it cant be in the same step for some reason. but this is where the confusion kicks in. ive been told not to do anything with the viewport variables, where others have thrown them into camera resize, and then others use camera matrixes.
Its just left me confused and disoriented.
I would love it if I could make a camera that has the viewport centered on a target (ex.the player) and that viewport be the size of the game window.
I would also love it if I could switch it to fullscreen keeping the resolution of the current resolution of the device being used.
and all of that work without needing the room size to be a certain aspect ratio.
I would love it if someone could explain to me how i could go about that.
Heres what I understand and have tried to use:
I have a persistent object named ctrl_camera.
in the create event Im defining variables to use in setting up the viewport that follows the camera
Code:
target = obj_player.
view_width = 640;
view_height = 360;