Changing orientation

farahmedfarahmed Member, PRO Posts: 33

How do integrate changing orientation for when I rotate my device? I have made my app in portrait mode but believe I need to do it in landscape mode also. I just don't know how/where to link them? Please help!

Comments

  • tintrantintran Member Posts: 453

    Under Scene->Autorotate
    you have 4 options.
    If you want just always portrait click that and uncheck landscape
    If you want both check portrait and landscape as well.

  • farahmedfarahmed Member, PRO Posts: 33

    ok thank you . I see portrait and landscape left and right. what does that mean? do i check both?

  • farahmedfarahmed Member, PRO Posts: 33

    and how can i test and make sure its working on my iPhone?

  • tintrantintran Member Posts: 453
    edited July 2015

    http://gamesalad.com/download
    and download the IOs viewer for your phone i guess.
    I am on Windows(PC) and I use the android viewer on my uncle's google nexus (android) and it works great.

  • tintrantintran Member Posts: 453

    @farahmed said:
    ok thank you . I see portrait and landscape left and right. what does that mean? do i check both?

    If you check both i would expect it to be able to autorotate to whichever landscape you're holding it up like when you're viewing portrait, there's a left and there's a right side.

  • farahmedfarahmed Member, PRO Posts: 33

    thanks and how do I make changes to the landscape mode of my app? I have set autorotate on, but the user interface needs to be edited to fit the screen properly. Where can I do this? do I have to make a new scene and link it somewhere to let program know when it phone rotates, send to another scene?

  • tintrantintran Member Posts: 453

    I don't really know but
    game.deviceScreen.Device Orientation is a 0 when in landscape mode and is a 2 when in portrait mode.
    Maybe put some logics around that

  • ArmellineArmelline Member, PRO Posts: 5,368

    To test device rotation you need to build an ad hoc, you can't limit rotation in the viewer.

    Unless you specifically want to support landscape orientation as well, you can safely skip it.

  • farahmedfarahmed Member, PRO Posts: 33

    How to I skip it? I would like the app to only be available in portrait mode

Sign In or Register to comment.