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.
1 2 3 4 5 | local tmr = timer.performWithDelay(2500, goMenu) local function goMenu (event) director:changeScene ("menu", "moveFromLeft") end |
Ok, I figured it out. I needed to put the timer AFTER the function. Like this:
1 2 3 4 5 6 7 | local function goMenu (event) director:changeScene ("menu", "crossfade") end local tmr = timer.performWithDelay(2500, goMenu) |
views:1376 update:2011/10/11 8:57:46