Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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?
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...
Develop games in your browser. Powerful, performant & highly capable.
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 :)