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
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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.
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 :)