Lost trying to make a pause screen

Hi everyone.

I’m trying to make a pause screen. So when the player pauses the game, the game goes to a different screen where the player can do some stuff, let’s say adjusting settings, etc.

Can anyone recommend me a good tutorial or article about it? I haven’t been able to find one.

Thanks a lot!

You want to use our composer.* API to manage multiple scenes.  Here are some resources:

https://coronalabs.com/blog/2015/04/14/tutorial-the-basic-game-template/

https://docs.coronalabs.com/guide/system/composer/index.html

https://coronalabs.com/resources/tutorials/user-interface-scenes-and-widgets/

The first one presents you a full game template with a menu to do your settings and such from.  Adapting this to a “Pause” system will take a little work.  You have to stop everything moving on it’s own in your game scene and then go to another scene (or maybe use an overlay scene!) and when you return, you have to start everything back up.  This is more than doable, but you have to handle all the “pausing” on your own.

Rob

Thanks Rob I’ll give it a go :smiley:

You want to use our composer.* API to manage multiple scenes.  Here are some resources:

https://coronalabs.com/blog/2015/04/14/tutorial-the-basic-game-template/

https://docs.coronalabs.com/guide/system/composer/index.html

https://coronalabs.com/resources/tutorials/user-interface-scenes-and-widgets/

The first one presents you a full game template with a menu to do your settings and such from.  Adapting this to a “Pause” system will take a little work.  You have to stop everything moving on it’s own in your game scene and then go to another scene (or maybe use an overlay scene!) and when you return, you have to start everything back up.  This is more than doable, but you have to handle all the “pausing” on your own.

Rob

Thanks Rob I’ll give it a go :smiley: