Hi all, me again. I, before using Corona, was developing my game using LOVE2D, as a graphics/game engine for pc. (LOVE2D was an engine for Lua). Now as I’m porting my game to Android, I’ve encountered a problem. In LOVE2D, in main.lua it was required that you have the bult-in function “love.draw()” What this function did was constantly update the program, such as variables and other functions. So for example, I could have this:
gamestate=“menu”
love.draw()
if gamestate==“menu” then
doMenu()
end
if gamestate==“play” then
startGame()
end
end
And this constantly updated and checked the gamestate… Now my problem is, i don’t know of any function that will do that on Corona, and my game, after you hit the play button, changes the gamestate to “play”. With LOVE2D, doing this would automatically call the startGame() function… But i don’t know of anything that does that… can someone help me out?