Timer to change scene using Director Class *RESOLVED*

Hi, to start with, I don’t know if this thread should go in the Director Class forum or this one. (I’m a new user).

Anyway, I want to be able to change my scene using a Timer. How would I go about doing this? Here’s what I have so far. [code]local tmr = timer.performWithDelay(2500, goMenu)

local function goMenu (event)
director:changeScene (“menu”, “moveFromLeft”)
end

[import]uid: 66317 topic_id: 14510 reply_id: 314510[/import]

Ok, I figured it out. I needed to put the timer AFTER the function. Like this: [code]local function goMenu (event)
director:changeScene (“menu”, “crossfade”)
end

local tmr = timer.performWithDelay(2500, goMenu) [import]uid: 66317 topic_id: 14510 reply_id: 53695[/import]