#view_set_width() or view_wport[0]

44 messages · Page 1 of 1 (latest)

obsidian palm
#

should I use view_set_width() or just set view_wport[0]

#

view_set_width() or view_hport[0]

#

view_set_width() or view_wport[0]

finite basinBOT
#

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

obsidian palm
#

@nova tree

#

i mean

#

should i use

#

view_set_width() to set the viewport

#

or view_wport[0]

nova tree
#

Are you working in 1.4?

obsidian palm
#

no

nova tree
#

view_set_width() is not a function in modern GM.

obsidian palm
#

i think it is

#

let me check

nova tree
#

Not it is not.

obsidian palm
#

i mean this

#

sorry

nova tree
#

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?

obsidian palm
#

should I use view_set_hport or view_hport[0]

obsidian palm
#

i mean

#

like

#

does it matter

#

I use it

nova tree
#

Well you better figure out what you're doing first.

nova tree
# finite basin

Most of the time we use this function to resize the camera.

#

Watch a couple camera tutorials.

obsidian palm
#

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

nova tree
#

I asked you what you're trying to resize your viewports for.

obsidian palm
#

why does it matter

#

I resize views in my game

#

it doesn't matter why

nova tree
#

Umm, ok.

#

There shouldn't be any difference afaik.

obsidian palm
#

ok then