Ending the Game ?

I have posted this in another thread but having solved the other things I feel a new thread would be of benefit for clarity.

I have now after a steep learning curve nearly finished my first game using Corona.
I have all the animations,collisions,scoring system working; I have players/ enemies in modules etc.
To complete I need to use storyboard or director class for menus and scenes. I will tackle that after I solve my next challenge.

My question is this,
At the moment I open the simulator and away the game goes; not such a problem as I believe director class can cover the start via menu.
What I want to know is how do I end the game ? i.e. stop the game when say the countdown timer ends or the health bar is depleted ?
At the moment it just continues to play.

Thank you [import]uid: 127675 topic_id: 30916 reply_id: 330916[/import]

Go with whatever you think will make the game most engaging to the player! You could also do different game modes like ‘Arcade’ or ‘classic’ which could have different endings.

Also if you have a video it would give more an idea what game is like.
[import]uid: 75779 topic_id: 30916 reply_id: 123682[/import]

Thanks for the answer but I think you nay have mis-understood.

Ok, I can now call a another scene when the timer and health bar run out.
Problem is, the scene is called but the game is still running in the simulator.

Can anyone tell me how to KILL the game when the timer or health bar expires please, or the logic for that.

I await your answers, thanks [import]uid: 127675 topic_id: 30916 reply_id: 123806[/import]

Go with whatever you think will make the game most engaging to the player! You could also do different game modes like ‘Arcade’ or ‘classic’ which could have different endings.

Also if you have a video it would give more an idea what game is like.
[import]uid: 75779 topic_id: 30916 reply_id: 123682[/import]

Thanks for the answer but I think you nay have mis-understood.

Ok, I can now call a another scene when the timer and health bar run out.
Problem is, the scene is called but the game is still running in the simulator.

Can anyone tell me how to KILL the game when the timer or health bar expires please, or the logic for that.

I await your answers, thanks [import]uid: 127675 topic_id: 30916 reply_id: 123806[/import]