Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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 :)