Splash Screen not showing up

I have a splash screen named Default.png and it doesn’t show up (neither in the simulator, nor the device) and it’s related to the orientation settings of the build.setting file. When I delete the default orientation it shows up in portrait. I need it to show up in landscape. Here’s the build.setting file just in case:

settings = {
orientation = {
default = “landscapeRight”,
supported = { “landscapeLeft”, “landscapeRight” },
},

}

I tried with a Default.png sized 480x320 and 320x480 with no luck. Is this a bug? Any suggestions?
[import]uid: 10835 topic_id: 4073 reply_id: 304073[/import]

Hello, I hope I can be of some help. This is my build.settings file:

[blockcode]
settings =
{
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”,
},
}
}
[/blockcode]

My game is in landscape but I noticed the Default.png file only wants to show up in portrait. So just create your image with landscape dimensions (480x320) and then when you’re finished, simply use your image-editing program of choice to rotate the image 90 degrees clockwise.

The Default.png file often doesn’t show up in the simulator for me, and on the device, it only shows up for the duration of the time it takes for your app to load, so it might seem like it doesn’t show up if your app is very small and can load up very quickly (especially if you are on a newer device like an iPhone 4).

A good practice is to create a splash screen function that displays the same image (though don’t rotate this one) and have it fade away and destroy itself after a certain amount of seconds. That way, your splash screen is sure to show up, and the Default.png file will make it seem as though the splash screen showed up instantly.

Hope that helps! [import]uid: 7849 topic_id: 4073 reply_id: 12559[/import]

On your app you can add a file called Default-Landscape.png too. I think that might help. I added it in mine and it overrides Default.png while letting your image be saved in landscape orientation. [import]uid: 11024 topic_id: 4073 reply_id: 12576[/import]

It’s weird. Last night I added the “content = lanscapeRight” line, but it didn’t do anything. I realized the splash screen might not show in the simulator because it’s too fast so I put a timer before I call my first function. It doesn’t show, though it does when I remove the default orientation line. Maybe I have something conflicting with the config.lua? What does yours look like?

I’ll try the Default-Landscape image though the docs said it was only for iPad. At this point it can’t hurt to try.

Edit: Default-Landscape did it! Thanks.

Edit2: Actually it only worked on the simulator. On the device it’s still not showing. Weird. [import]uid: 10835 topic_id: 4073 reply_id: 12599[/import]

Hi,in my project I added both Default.png and Default-Landscape.png in the root folder.

And my build.settings file looks like this:
[lua]settings = {
orientation = {
default = “landscapeRight”,
supported = { “landscapeLeft”, “landscapeRight”},
},
iphone = {
plist = {
UIStatusBarHidden=true,
UIPrerenderedIcon = true,
},
},
}[/lua] [import]uid: 11024 topic_id: 4073 reply_id: 12618[/import]

I did that. And my build.settings looks the same as yours. What about your config.lua? Could that be the culprit? In any case I’m making progress since now it works on the simulator, though I have no idea why it doesn’t on the device. [import]uid: 10835 topic_id: 4073 reply_id: 12621[/import]

Now that I think about it, my Default and Landscape are the same file except rotated (my game always plays in landscape mode so…)

My config
[lua]application =
{
content =
{
width = 640,
height = 960,
scale = “letterbox”,
fps = 30,
xAlign = “center”,
yAlign = “center”,
},
} [/lua] [import]uid: 11024 topic_id: 4073 reply_id: 12623[/import]

Thanks for the response. It’s a little different than mine. I don’t have the x and y Alingn and I’m using 320 and 480 for width and height. I’ll check if that’s the problem when I get home.

Edit: Ok thanks for all your help, both of you. I was able to fix it. It turns out I needed both the Default.png and the Default-Landscape.png for it to work on device, on the simulator just the landscape one worked fine. [import]uid: 10835 topic_id: 4073 reply_id: 12625[/import]