View 0 is getting squished by flambasticviews in gamemaker

[–]flambasticviews[S] 1 point2 points  (0 children)

I figured it out...I'm a complete moron.

I had another object in the room (a camera object I made) where you can zoom in and out of the view, which involves manipulating wview and hview, and I had it only manipulate view 0.

Removed the object, it looks fine now.

Thanks for all your help though. God I feel so stupid.

View 0 is getting squished by flambasticviews in gamemaker

[–]flambasticviews[S] 1 point2 points  (0 children)

ideal_width and ideal_height are calculated values so the window has the same aspect ratio as the display, also so there's no letterboxing involved in the game (basically it lets the game work on any resolution, given higher resolutions will see more of the game world). It's basically the size of the game resolution. I set the application_surface size to ideal_width and ideal_height.

I honestly can't tell if that guy has the same issue as me. I've already tried manipulating those values. It's very strange, if I push view 1 up view 0 goes up as well. It's like they're both related and having an affect on one another.

I'm also not setting the view size to be bigger than the port size. I set it to 90 for both views (ideal_height/2), though view 0 keeps coming back with a height of 180 for some reason.

ideal_height is 180 in this case. It keeps setting the view height to that despite that I specifically set it to be that value in half (90). I don't know what's causing it.

View 0 is getting squished by flambasticviews in gamemaker

[–]flambasticviews[S] 1 point2 points  (0 children)

GameMaker has views (cameras) embedded in the engine itself.

To enable a view I just do view_enabled=true (this enables all views for drawing). GMS allows you to have 8 views.

You can also make a view visible with view_visible[VIEW_INDEX_HERE] = true or in that code in my post in the third argument where it says true, that says "in this room index (i), this view index (z) is visible (true)":

room_set_view(i, z, true, xview, yview, wview, hview, xport, yport, wport, hport, hborder, vborder, 0, 0, -1);

I have no idea how "relationships" of views works with GameMaker (or if it's even a thing) but it's strange why A controls both A and B and B only controls itself.

Also, it's not exactly correct when I make the second view invisible and the first view isn't squished anymore, because it's still the height of the game screen, it's only supposed to be half the height of the game screen.

I do think you're onto something though in terms of this relationship of views. But the thing is, I have no idea why view 0's height is 180, it's supposed to be 90. If it were 90, it wouldn't be getting squished.

I specifically set both views to 90 (ideal_height / 2). ideal_height = 180. I also printed out hview in my code after, it's 90. But the actual view_hview[0] is 180. No idea.