L
Linkdeous
Guest
Hello guys, i have a problem with my current obj_camera (as i called it when i coded it)
It work perfectly at least when both your monitor are the same size, but i've switched from my main screen (in 4:3) to a 16:9 screen, and now, the window is set to the size of the second monitor, which is 4:3..
is there a way to take with display_get_width() a certain monitor size ? it take the second monitor size and it make the game look bad on that screen
Create Event :
Alarm[1]
:
finally step event :
It work perfectly at least when both your monitor are the same size, but i've switched from my main screen (in 4:3) to a 16:9 screen, and now, the window is set to the size of the second monitor, which is 4:3..
is there a way to take with display_get_width() a certain monitor size ? it take the second monitor size and it make the game look bad on that screen
Create Event :
Code:
height=252;
dheight=display_get_height()
dwidth=display_get_width()
ratio=dwidth/dheight
width=height*ratio
window_set_size(width*2, height*2);
window_set_min_height(dheight);
window_set_min_width(dwidth);
alarm[1]=1
if !view_enabled
{
view_visible[0] = true;
view_enabled = true;
}
view_hview[0]=height
view_wview[0]=height*ratio
:
Code:
window_center()
Code:
view_xview[0]=obj_player.x-width/2
view_yview[0]=obj_player.y-height/2-obj_player.sprite_height/2