Hello everyone!
Does anyone know of a tutorial or anything helpful about learning how the build.settings file works?
Thank you!
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 321830[/import]
Hello everyone!
Does anyone know of a tutorial or anything helpful about learning how the build.settings file works?
Thank you!
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 321830[/import]
See here : http://developer.anscamobile.com/content/configuring-projects [import]uid: 84637 topic_id: 21830 reply_id: 86726[/import]
Thank you very much. I have looked at this though and I’m having a hard time understanding it.
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 86728[/import]
Hi, what are you struggling with the most ? [import]uid: 84637 topic_id: 21830 reply_id: 86730[/import]
Well, the thing I can’t get that I need the most is the ability to rotate the device.
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 86736[/import]
Hi. For that functionality it’s as simple as this :
settings =
{
orientation =
{
default ="landscapeRight",
supported =
{
"landscapeRight", "landscapeLeft"
},
},
}
and for portrait
[code]
settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
},
} [import]uid: 84637 topic_id: 21830 reply_id: 86739[/import]
Will it show it in the simulator? It’s not for me.
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 86749[/import]
yes it should
in fact when you start the main.lua file the sim device should open rotated to the default position [import]uid: 7911 topic_id: 21830 reply_id: 86751[/import]
the default.png file doesnt rotate you have to create it so the imaged is rotated but not the canvas [import]uid: 7911 topic_id: 21830 reply_id: 86752[/import]
I’m only interested in the portrait dimensions. Does that make a difference with what you just said?
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 86753[/import]
Hi Nathan.
Yeah if you use this as your build.settings it will work fine. (you will need to rotate the simulator twice in the same direction to flip between portrait and portrait upsidedown modes.
If it doesn’t work, can you tell me what version of corona you are using ?
Thanks
[code]
settings =
{
orientation =
{
default = “portrait”,
supported = {
“portrait”,
“portraitUpsideDown”
},
},
} [import]uid: 84637 topic_id: 21830 reply_id: 86841[/import]
I put that bit of code in and it’s working now. Thank you very much!
Nathan [import]uid: 39302 topic_id: 21830 reply_id: 86967[/import]