Help with Orientation

Hi this is kind of a newb question but how to i set teh defaul orientations cause i cant seem to figure this out, i have searched docs and everything but i am not finding anything.

Thanks. [import]uid: 69054 topic_id: 18909 reply_id: 318909[/import]

I believe that is in the build settings file.

Check out the “Build Configuration: build.settings” section about a third of the way down.
http://developer.anscamobile.com/content/configuring-projects [import]uid: 94868 topic_id: 18909 reply_id: 72833[/import]

Oh ok thank you! [import]uid: 69054 topic_id: 18909 reply_id: 72834[/import]

Hmm i am using the code below and i am using local config = require("config");

Here is the code im using for the config.lua file:

settings =  
{   
 orientation =  
 {  
 default = "landscapeRight"  
 },  
}  

But when i use that it keeps defaulting to portrait not landscapeRight and im also using director, and i dont know if that could be interfering with it but i dont know.

Thanks. [import]uid: 69054 topic_id: 18909 reply_id: 72840[/import]

You don’t have to require config.

For your landscape stuff, that should be in build.settings and not in config.lua.

Peach :slight_smile: [import]uid: 52491 topic_id: 18909 reply_id: 72862[/import]

Oh ok no wonder haha, thank you. I was confusing myself

Thanks [import]uid: 69054 topic_id: 18909 reply_id: 72870[/import]

No worries at all, let me know if you have any more trouble with it. (I know it can be confusing in the early days.)

Peach :slight_smile: [import]uid: 52491 topic_id: 18909 reply_id: 72882[/import]