Best way to convert landscape to portrait or how to have both in a single app?
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
-
MarkOnTheIron Posts: 1,447
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.
-
MarkOnTheIron Posts: 1,447
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
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
I tried the MarkOnTheIron's way but it didn't work either
Here's a video demo what happened:
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left