Para ocarina u otra persona que me pueda ayuda. resulta que este codigo es muy bueno para ajustar a las resoluciones de android, pero a la hora de hacer menus de niveles u otros,, este hace que se extienda la pantalla y sobre. no logro ajustar exactamente la pantalla para que no sobre con este codigo. espero que me entiendan!!
Gracias
[code]///funciones para cambiar la resolucion
//
//
//
var screen_width, screen_height;
screen_width = 800;
screen_height = 480;
window_set_size(screen_width, screen_height);
if os_type == os_android {
screen_width = display_get_width();
screen_height = display_get_height();
}
var display_w, display_h;
display_w = display_get_width();
display_h = display_get_height();
// override if we are testing on Windows:
if os_type == os_windows {
display_w = screen_width;
display_h = screen_height;
}
/************************
Aspect ratio fix
************************/
// Set our base height
view_hview = 768;
view_hport = 768;
// get the aspect ratio
aspect_ratio = display_w/display_h;
// Now we change the view width based on the aspect ratio and the desired height:
view_wview = view_hview*aspect_ratio;
view_wport = view_wview;
//
//
//termina funcion
[/code]
amigo no entiendo tu duda!! Exlicate mejor!!!
Saludos!!!
Gracias amigo. esto lo solucione yo mismo hace bastante tiempo. un saludo grande!