Hi,
is possible detect that device is landscape or portrait? I want to make this, when device is portrait, i want to show massage: "please rotate device landscape". Is this possible now in construct?
Develop games in your browser. Powerful, performant & highly capable.
No exist?
you could compare windowwidth and windowheight. if windowwidth < windowheight set timescale to 0 and display rotate message. This is only usefull if you're using scale and fullscreen-mode i think.
It does not work for me :( i use letterbox scale and i tryed other fullscreen modes too...
You can use the default Browser plugin and do something like:
System: Browser.ExecJS("window.innerWidth") < Browser.ExecJS("window.innerHeight") -> display your message
Thanks Yann, it worked :)