Would it be possible?

To send composer to a scene according to the date on the device? I’m trying to make a daily thing, and according to the date on the device I want it to go to different scenes. Would that be possible and how would I go about do that?

maybe something like if system.date equals this then go to scene? idk of this will work but i will get back to u soon.

https://docs.coronalabs.com/api/library/os/date.html this is some documentation on os date and stuff like that and u could make a if statment with the date and time as a constraint. Hope this helps!
Tyler Jacobson
www.cloudformgames.com

Ah thanks, didn’t realize I could grab the date like that thanks!

Hey! I just threw this together in a min. I think this is what you want.

local date = os.date( "%A" ) --Get the day name of the week ( Today its tuesday ) local function gotoCorrectScene() if date == "Monday" then print("Today is Monday!") elseif date == "Tuesday" then print("Today is Tuesday!") elseif date == "Wednesday" then print("Today is Wednesday!") elseif date == "Thursday" then print("Today is Thursday!") elseif date == "Friday" then print("Today is Friday!") elseif date == "Saturday" then print("Today is Saturday!") elseif date == "Sunday" then print("Today is Sunday!") end end timerCheck = timer.performWithDelay( 1, gotoCorrectScene, 1 )

Good Luck!

–SonicX278

Thanks for that! although I’ve already got what I need coded out haha, thanks anyway!

Ya no problem! Good luck on your app or game!

–SonicX278

maybe something like if system.date equals this then go to scene? idk of this will work but i will get back to u soon.

https://docs.coronalabs.com/api/library/os/date.html this is some documentation on os date and stuff like that and u could make a if statment with the date and time as a constraint. Hope this helps!
Tyler Jacobson
www.cloudformgames.com

Ah thanks, didn’t realize I could grab the date like that thanks!

Hey! I just threw this together in a min. I think this is what you want.

local date = os.date( "%A" ) --Get the day name of the week ( Today its tuesday ) local function gotoCorrectScene() if date == "Monday" then print("Today is Monday!") elseif date == "Tuesday" then print("Today is Tuesday!") elseif date == "Wednesday" then print("Today is Wednesday!") elseif date == "Thursday" then print("Today is Thursday!") elseif date == "Friday" then print("Today is Friday!") elseif date == "Saturday" then print("Today is Saturday!") elseif date == "Sunday" then print("Today is Sunday!") end end timerCheck = timer.performWithDelay( 1, gotoCorrectScene, 1 )

Good Luck!

–SonicX278

Thanks for that! although I’ve already got what I need coded out haha, thanks anyway!

Ya no problem! Good luck on your app or game!

–SonicX278