How do you make a preloaded???

I am using the director class for my app. When I open it on my device, a black screen shows for a second or two.
I was wanting to turn this into an image/loading screen before the main.lua file takes me to my home page. Is there an easy way to accomplish this?

Here’s my main.lua file
display.setStatusBar (display.HiddenStatusBar)
–> Hides the status bar
local director = require (“director”)
–> Imports director

local mainGroup = display.newGroup()
–> Creates a main group

local function main()
–> Adds main function

–slideView.new( mySlides )
mainGroup:insert(director.directorView)
–> Adds the group from Director

director:changeScene(“home”)
–> Change the scene, no effects

return true
end

main()
–> Starts our app
Thanks! [import]uid: 42126 topic_id: 23333 reply_id: 323333[/import]

The black screen is the loading screen. You can replace it with your own splash screen.

Put an image the size of the screen in your project folder called Default.png - that should fix it :slight_smile: [import]uid: 52491 topic_id: 23333 reply_id: 93458[/import]

That seems to work, thank you.

I noticed that it defaults to portrait. My app is in landscape.
How can I fix this?

And another thing, is there a way that I can delay the amount of time that it takes for the loading screen to pass? [import]uid: 42126 topic_id: 23333 reply_id: 93475[/import]

Make Landscape image and rotate it is easiest, fastest way :slight_smile:

RE delay, yes but that’s manual - you’d add it to your first screen and use a timer to get rid of it, that would make it appear to stay up longer. (By default it just shows up while the app is loading so this is a workaround of sorts.)

Peach :slight_smile: [import]uid: 52491 topic_id: 23333 reply_id: 93489[/import]

I am utilizing the accelerometer and I was testing my app on my iphone while laying down and I couldn’t play it because the center of gravity was off.

I was wondering if there was a way to calibrate the gyro to whatever position the phone is in?
The best example of this is in the app Air Penguin which allows you to reset your tilt. [import]uid: 42126 topic_id: 23333 reply_id: 94298[/import]

Basically I am looking to reset the gyro’s reference point [import]uid: 42126 topic_id: 23333 reply_id: 94305[/import]

Hey! Check out my app Gravity Ball™ now in the App Store!
http://itunes.apple.com/us/app/gravity-ball/id508691777?mt=8 [import]uid: 42126 topic_id: 23333 reply_id: 96680[/import]