loading screens,

hi, im fairly new to corona and i’ve watch like 100 tutorials on screen transition. but very few actually explain it nor do they  start fresh. like from scratch. they always have the code already there and add more code and it confuses me because i dont know what he is typing, and instead of starting from the beginning. this is where i get confused. i also looked for similar  forum post, but i cant seem to find one relevant to what im trying to do. im sorry if there is a forum post already, if there is please link me. but the thing im trying to do, is have a total of 5 screens.

the first screen will be a loading screen with my logo i want it to be about 3 secs long sorta like a flash.

the second screen i want it to be about 7 secs long with a little bit about it

3rd is the menu screen that has 3 buttons

the 4th screen is about the app. where it will have text screen that will stay on for about a couple seconds then change text with a new image in the back round. then final a paragraph about it will be with a new screen,

then if you hit start it will take you to the app screen. all i want this screen to do is keep changing images in the backround none stop, while there interacting with the app i made. till they hit back to main screen or close the app.  i kinda dont need the 2cd but i figure i would practice 

Look at this tutorial and project:  https://coronalabs.com/blog/2015/04/14/tutorial-the-basic-game-template/

Yes there is code already there because too many people struggle with getting all the required parts into their scenes.  It does not support the loading screens you want, but you just need to create two more scene files, maybe called splash.lua and info.lua that handle your startup screens. Just model them after the other scene (.lua) files in

You should also read the Composer guide:  https://docs.coronalabs.com/guide/system/composer/index.html

This explains all of the parts and why they are there.

Rob

ok some one messaged me a link to a ok video. but i followed the video to the t and im getting errors. and he isnt i was wondering if he was just using a different version of corona, or am i just doing something wrong. plus not everything is not matching up like he does in the video. 

https://www.youtube.com/watch?v=7zMoMMFXI88

[lua]

mainScreen = {}

function mainScreen:new()

 

local screen = {}

screen.stage = display.getCurrentStage()

function screen:initailize()

local continueButton = self:getButton(“continue-button.png”)

self.continueButton = continueButton

continueButton.x = 150

continueButton.y = 150

local newButton = self:getButton(“ResetButton.png”)

self.newButton = newButton

newButton.x = 150

newButton.y = 200

local aboutButton = self:getButton(“About_Button.png” )

self.aboutButton = aboutButton

aboutButton.x = 150

aboutButton.y = 250

end

function screen:getButton(image)

– body

local img = display.newImage(image)

function img:touch(event)

screen:onButtonTouch(event)

end

img:addEventListener(“touch”, img)

return img

end

function screen:show( )

local continueButton = self.continueButton

local newButton = self.newButton

local aboutButton = self.aboutButton

local stage = self.stage

function screen:cancelTween(obj)

if obj.tween ~= nil then

transition.cancel(obj.Tween)

obj.tween = nil

end

end

function screen:hide( )

– body

end

screen:initailize()

return screen 

 end 

return mainScreen

end

[/lua]

what could i possible be doing wrong. 

you could do this … so in main.lua you add your logo and all and after 5 seconds it goes to menu.lua nd then you click a button and you go to game… that what you want?

yes 

Look at this tutorial and project:  https://coronalabs.com/blog/2015/04/14/tutorial-the-basic-game-template/

Yes there is code already there because too many people struggle with getting all the required parts into their scenes.  It does not support the loading screens you want, but you just need to create two more scene files, maybe called splash.lua and info.lua that handle your startup screens. Just model them after the other scene (.lua) files in

You should also read the Composer guide:  https://docs.coronalabs.com/guide/system/composer/index.html

This explains all of the parts and why they are there.

Rob

ok some one messaged me a link to a ok video. but i followed the video to the t and im getting errors. and he isnt i was wondering if he was just using a different version of corona, or am i just doing something wrong. plus not everything is not matching up like he does in the video. 

https://www.youtube.com/watch?v=7zMoMMFXI88

[lua]

mainScreen = {}

function mainScreen:new()

 

local screen = {}

screen.stage = display.getCurrentStage()

function screen:initailize()

local continueButton = self:getButton(“continue-button.png”)

self.continueButton = continueButton

continueButton.x = 150

continueButton.y = 150

local newButton = self:getButton(“ResetButton.png”)

self.newButton = newButton

newButton.x = 150

newButton.y = 200

local aboutButton = self:getButton(“About_Button.png” )

self.aboutButton = aboutButton

aboutButton.x = 150

aboutButton.y = 250

end

function screen:getButton(image)

– body

local img = display.newImage(image)

function img:touch(event)

screen:onButtonTouch(event)

end

img:addEventListener(“touch”, img)

return img

end

function screen:show( )

local continueButton = self.continueButton

local newButton = self.newButton

local aboutButton = self.aboutButton

local stage = self.stage

function screen:cancelTween(obj)

if obj.tween ~= nil then

transition.cancel(obj.Tween)

obj.tween = nil

end

end

function screen:hide( )

– body

end

screen:initailize()

return screen 

 end 

return mainScreen

end

[/lua]

what could i possible be doing wrong. 

you could do this … so in main.lua you add your logo and all and after 5 seconds it goes to menu.lua nd then you click a button and you go to game… that what you want?

yes