I have been having problems when I scale my gamemaker 2 html5 game to fit the height of the browser. Once it scales up it no longer detects the mouse position. Without it being scaled to height I am able to click on my enemies, but when it is scaled to browser height I am unable to. I figure it has to do with the scaling to the browser height
Thanks in advance!
if(os_type == os_windows){
ideal_width = 0;
ideal_height = browser_height;
start_b_width = browser_width;
start_b_height = browser_height;
aspect_ratio = browser_width/ browser_height;
ideal_width = round(ideal_height / aspect_ratio);
if(ideal_width & 1){
ideal_width++;
}
room_set_width(rm_game, ideal_width);
room_set_height(rm_game, ideal_height);
surface_resize(application_surface, ideal_width,ideal_height);
room_goto_next();
alarm[0] = 60;
}
//In my alarm
window_set_size(room_width,room_height);
window_center();