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

secondsToWait = 5
nextSceneName = "Menu"

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

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