Detect Landscape or Portrait Mode

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • On my devices (Samsung S6 & Samsung A1), with the Android Plus object forcing the orientation mode and with display orientation set to automatic, it takes at least 20 millisecond for the Android Object to detect the good screen width and height if the orientation mode is different from the actual holding of the device.
    So the test can't be done as first event.

  • you need to insert accelerometer object to your frame(s) and set screen orientation to any (in display options)
    unfortunately ctf detect only 3 orientations or it's bug:
    0 - [FONT=&amp]Portrait[/FONT]
    3 - [FONT=&amp]Landscape left[/FONT]
    4 - [FONT=&amp]Landscape right[/FONT][FONT=&amp]
    you can play with something like:
    compare two general values orientation ("accelerometer object") equal 0...6
    - set set alterable string to "bla bla"[/FONT]

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!