Default.png

The Default.png seems to be a built in splash screen thingy.

But where in the docs is this discussed? Can it be slowed down or paused? [import]uid: 9371 topic_id: 3792 reply_id: 303792[/import]

i think the transition from the iphone icon launch to the default screen is a native part of the iOS. however from there you could then load the defautlt and the splash screen again as the first part of your app. then you could add stuff to that splash screen so it looks like a continuous flow. as far as i know it should be seamless,

for example…

[lua]local default = display.newImage(“Default.png”)
local splash = display.newImage(“monkey1.jpg”)
splash.alpha=0

local play_txt = display.newText(“PLAY NOW!”, 160,420,native.systemFont,36)
play_txt:setTextColor(255,255,255)

play_txt.x = play_txt.x-play_txt.width/2
play_txt.alpha=0

transition.to(splash, {time=1000, alpha=1})
transition.to(play_txt, {time=1000, delay=1000, alpha=1})[/lua]

fading a slightly different version of the launch default.png (monkey1.jpg), which doesnt have the loading message, over the top of the default.png essentially causes the “Loading” message to fade out. From there you can add fade in more stuff. you could also load an image that is a small part of the original just to cover the “loading” area rather than a whole new version of the image

I dont have a phone to test this but it should work

default.png

splash

(original image courtesy of http://www.slashphone.com/wallpaper/detail.php?photo=49334) [import]uid: 6645 topic_id: 3792 reply_id: 11532[/import]

So the Default.png zooms in, seems to me there is very little time to read anything thats on that image… [import]uid: 9371 topic_id: 3792 reply_id: 11537[/import]

it’s a quick splash screen that loads the app. depending on the size of your app this will be there for a short time or a long time.

assume it is just there to show a quick “loading message” and some nice graphics :slight_smile:

j

[import]uid: 6645 topic_id: 3792 reply_id: 11543[/import]

I’m using the Director class from Ricardo Rauber and not too sure how this will fit in… [import]uid: 9371 topic_id: 3792 reply_id: 11551[/import]

you would start start your director class after you’ve done all this. this is just your loading/intro page. fade it out and bring on your other content?

[import]uid: 6645 topic_id: 3792 reply_id: 11556[/import]

I have…

display.setStatusBar( display.HiddenStatusBar )
local default = display.newImage(“Default.png”)
local splash = display.newImage(“images/bkg_menu.png”)
splash.alpha=0

transition.to(splash, {time=4000, alpha=1})

– Import director class
local director = require(“director”)

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

– Main function
local function main()

– Add the group from director class
mainGroup:insert(director.directorView)

– Change scene without effects
director:changeScene(“screen1”)

return true
end

– Begin
main()

– It’s that easy! :slight_smile: [import]uid: 9371 topic_id: 3792 reply_id: 11557[/import]

possibly…dont do this
[lua]-- Begin
main()[/lua]

instead take it out and move your transition to where main() was called and then change your transition to
[lua]transition.to(splash, {time=4000, alpha=1, onComplete=main})[/lua]

thats if you want to go straight from your splash to your first page… maybe you want to do other animations first… basically make your call to “main” whenever you’re ready to start the rest of your app [import]uid: 6645 topic_id: 3792 reply_id: 11560[/import]

No still doesn’t work. I don’t see the buttons in the screen1 now :frowning: [import]uid: 9371 topic_id: 3792 reply_id: 11561[/import]

Guys, please write your questions at Director’s sub-forum. I don’t have too much time to answer and I really didn’t see most of the topics created for Director. I’m sorry for that and I will appreciate if you all could go to this link:

http://developer.anscamobile.com/forums/director-class [import]uid: 8556 topic_id: 3792 reply_id: 18695[/import]