local function changeScenes ()
composer.gotoScene(“RegularMode”, {effect = “slideLeft”, time = 500})
end
local function changeScenes2()
composer.gotoScene(“DpadMode”, {effect = “slideLeft”, time = 500})
end
These two functions both have a button each to call them. I only need one function though. What if-statements can I use to differentiate between the two? I’m new to Solar2D/CoronaSDK but not LUA.