S
spiritualatombomb
Guest
So i've set up a basic system for views that is turning out to be problematic, hoping you guys can have a look and come up with some feedback on making it more flexible. The way the view system works now is that I first retrieve the screensize and attach some variables to the width and height in my gamefile creation event.
screenWidth = display_get_width()
screenHeight = display_get_height()
I then use these variables to limit the player's view in the gamefile's step event, so I divide it by 5 for rooms with a view. And don't divide at all for rooms without one:
// set views for different rooms
if room == tutoriallevel && view_wview != screenWidth / 5 { view_wview = screenWidth / 5; view_hview = screenHeight / 5; }
if room == rGameover { view_wview = screenWidth; view_hview = screenHeight; }
This works fine for me, and other people I've had test it. The thing is they've all been using my resolution which is 1920x1080. Today I had a guy play through it and complain about how difficult it was and how he couldn't see enemies or GUI elements. Turns out he was running a 1366 x 768 resolution and this resulted in a much tinier view than intended. So yeah, I'm still no good with views so I'm a bit clueless. So my question is as follows: Do you have any ideas how I could define a standardized/similar view across all resolutions?
screenWidth = display_get_width()
screenHeight = display_get_height()
I then use these variables to limit the player's view in the gamefile's step event, so I divide it by 5 for rooms with a view. And don't divide at all for rooms without one:
// set views for different rooms
if room == tutoriallevel && view_wview != screenWidth / 5 { view_wview = screenWidth / 5; view_hview = screenHeight / 5; }
if room == rGameover { view_wview = screenWidth; view_hview = screenHeight; }
This works fine for me, and other people I've had test it. The thing is they've all been using my resolution which is 1920x1080. Today I had a guy play through it and complain about how difficult it was and how he couldn't see enemies or GUI elements. Turns out he was running a 1366 x 768 resolution and this resulted in a much tinier view than intended. So yeah, I'm still no good with views so I'm a bit clueless. So my question is as follows: Do you have any ideas how I could define a standardized/similar view across all resolutions?