Hello I need help getting my game to switch scenes once the timer hits 0, I know there is a super simple answer for this, I am 15 years old working on my second app for the apple app store. My first one was built with unity.
Hopefully someone can help me and sorry if this post is sloppy I am in a time crunch and trying to get it out there.
Also currently I am running an if statement:
secondsLeft is currently set to 6 seconds in code above this, the code works if I set mainTest = 6 because the if statements only check right at the beginning right when it runs all of the code. How can I get this to update/refresh or use a different kind of recurring statement ???
local mainTest = 0
if (secondsLeft == mainTest) then
composer.removeScene( “game”, false )
composer.gotoScene( “game”, { effect = “crossFade”, time = 333 } )
end