#view_set_width() or view_wport[0]
44 messages · Page 1 of 1 (latest)
You can use this function to update the size of the view camera within the room. You give the unique camera ID value (as returned by the different camera_create() functions) and then give the width and height (in pixels) to set the camera to.
Arguments
camera_id: The unique camera ID value returned when you created the camera.
width: The width of the camera view in pixels
height: The height of the camera view in pixels
what?
@nova tree
i mean
should i use
view_set_width() to set the viewport
or view_wport[0]
Are you working in 1.4?
no
view_set_width() is not a function in modern GM.
Not it is not.
Looks like they do the same thing. I don't mess with viewports a lot myself, can't really say.
Try it out.
What are you resizing viewports for?
should I use view_set_hport or view_hport[0]
idk
i mean
like
does it matter
I use it
Well you better figure out what you're doing first.
Most of the time we use this function to resize the camera.
Watch a couple camera tutorials.
Hey GameMakers!
Confused by GMS2 cameras? My previous tutorial didn't help much, but this one should set you straight. Let me know what you think of this type of tutorial, especially the white board feature!
Links!
Join My Discord: https://discord.gg/By6u9pC
Listen to obj_podcast: https://ob...
dude
i know how cameras work
quite well
view_set_hport() and view_hport[0] do the same thing as far as I can see
I just want to know if they do anything differently
I asked you what you're trying to resize your viewports for.
ok then