You are not logged in.
Pages: 1
Thanks again. Even from this brief conversation I learnt something new!
I would like to attempt to write a more advanced variation for multiple screens, but I only have one screen and I will not be able to test it...
Thank you for your feedback. Does it make sense to detect multiple monitors if the device is mobile?
This simple script returns the diagonal screen size of the device the game is running on, in inches. I wrote and use it as an easy way to detect if the mobile device the game is running on is a tablet.
/// get_diagonal_screen_size()
//
// Returns the diagonal screen size in inches
//
/// GMLscripts.com/license
function get_diagonal_screen_size(){
return sqrt(sqr(display_get_width()) + sqr(display_get_height())) / display_get_dpi_x();
}
Pages: 1