I have a start up menu that has play now and instructions page. I want the menu and instruction to be in portrait but the actual game to be in landscape. any help?
Change Orientation for different scenes
(4 posts) (2 voices)-
Posted 1 year ago #
-
How about
[[CCDirector sharedDirector] setDeviceOrientation:(ccDeviceOrientation) kCCDeviceOrientationPortrait];Posted 1 year ago # -
im not sure where to put that line of code? my init?
Posted 1 year ago # -
Yeah, in each scene init set the orientation to the kind you want. Use auto completion to find all the different orientations.
Posted 1 year ago #
Reply
You must log in to post.