HI Everyone,
This is my first post and I am brand new to programming and Corona. I have been working my way through tutorials and am trying to practice my skills by building a simple linear game. It’s basic and along the lines of a choose your own adventure book. It’s working well until I try to restart the game. The first time that you click through it works perfect, and when your directed back to the main screen (to try again) it works again except for I either have the images from the last scene of the game stay on the screen the whole second play through or they disappear completely not returning when you reach the end screen.
I’ve read and tried a lot of different things, please help…
Here is the code for the restart function:
function restart(event)
local function removeText ()
yourDeadGroup:removeSelf()
end
yourDead:removeEventListener(“tap”, restart)
main()
end
Note: I have rewritten this code 15x (at least), so this is just the basic of it. I tried using transitions, timers, etc.
All responses are greatly appreciated! [import]uid: 170524 topic_id: 30334 reply_id: 330334[/import]