Best way to convert landscape to portrait or how to have both in a single app?

MantoManto Member Posts: 796
edited May 2012 in Working with GS (Mac)
I have an app with all the other screens in portrait but I want a minigame screen to be landscape. Using the autorotations and going from portrait to landscape makes the camera show the landscape screen wrong. How should I convert the landscape screen to portrait or have both in the same app?

Best Answers

  • MarkOnTheIronMarkOnTheIron Posts: 1,447
    Accepted Answer
    In your minigame scene change the scene size to w480xh320, then change the camera origin to X=80 and Y=-80, then unlock one actor in that scene and add a change attribute behavior for the camera rotation to 90 or -90 depending on what orientation you prefer.

  • jonmulcahyjonmulcahy Posts: 10,408
    Accepted Answer
    Quickworkaround is to just design everything rotated 90 degrees
  • MarkOnTheIronMarkOnTheIron Posts: 1,447
    Accepted Answer
    I usually use @johnmulcahy method.

    In my post I forgot that you have to add also the change behavior for the camera origin. I don't know why (maybe it's a bug) but if you input the camera origin in the scene attributes it won't work.

    Here's a simple demo for you:
    http://dl.dropbox.com/u/8244920/SceneRotation.zip

Answers

  • MantoManto Member Posts: 796
    Thanks for the answer. It didn't work for me, though. It didn't show the whole screen.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    @Manto1 I think you will need to change the art...
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    I tried before posting and it won't let you edit it in the scene attributes, so the only option is with an unlocked actor.

  • MantoManto Member Posts: 796
    edited May 2012
    Thanks for the answers.

    I tried the MarkOnTheIron's way but it didn't work either :(

    Here's a video demo what happened:



  • MantoManto Member Posts: 796
    edited May 2012
    Good otherwise but I already have the game done. I'm merging two projects.
  • MantoManto Member Posts: 796
    Thank you @MarkOnTheIron. This is exactly what I wanted.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I usually use @johnmulcahy method.

    In my post I forgot that you have to add also the change behavior for the camera origin. I don't know why (maybe it's a bug) but if you input the camera origin in the scene attributes it won't work.

    Here's a simple demo for you:
    http://dl.dropbox.com/u/8244920/SceneRotation.zip

    I remember when GS only supported landscape games. I coded an entire game 90 degrees, only to have portrait support come out q week later :)

Sign In or Register to comment.