Topic: Intro scene

I have created an intro scene in my game with a timer that stop the scene and goto to the menu scene...

maybe it could be usefull to someone smile

--configuration
secondsToWait = 5
nextSceneName = "Menu"

--impl
timer = 0
timerEnding = secondsToWait * 60 --scripting works always at 60 fps
function onSceneUpdate()
    timer = timer+1
    if timer>timerEnding then
        scene = getScene(nextSceneName)
        changeScene(scene)
    end
end

Last edited by SadWolf (2013-01-10 14:10:51)