Game Pause and Resume API

Hello there,

I am requesting new API which is related to game pause and resume.I know that our game was included timer,transition,enterframe and physics.While playing game if user pause game at that time we have to stop/cancel and manage all timers,transitions and physics bodies at a time of pause and at a time of resume we have to start timers which was stop at time of pause,start transition before pause and start physics also which sometimes gives us error and takes a lot of time to manage all these things.

SO,I am requesting new API something like “game.pause()” and “game.resume()” which can internally manage all these things.

NOTE: I know all the tricks to put timers in table and manage them but I want one line of code with no special tricks.

Thanks,
appsdev
[import]uid: 10884 topic_id: 16203 reply_id: 316203[/import]

so how about

game.pauseAllTimers()

and

game.resumeAllTimers()

would that be what you are after?

These are not *valid* commands or functions in CoronaSDK, if you do know how to manage things with tables, etc, put them in a function and call it with one line of code.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16203 reply_id: 60322[/import]

hi jayant,

thanks for quick reply i know that i can put all timers in one table and iterate through them in order to pause but i am not talking about them i am talking for pausing the game just like when you are running your game in corona simulator and press CMD + down arrow to pause and press the same again for resume.

i know its currently not possible and that’s why its in feature request. it would be really nice.
:slight_smile: [import]uid: 10884 topic_id: 16203 reply_id: 60325[/import]

+1
+1
+1
This type of feature is very useful for every developer and most of game engines supports this type of features such as cocos2d,andEngine etc…

Thanks,
Ahesan429 [import]uid: 49272 topic_id: 16203 reply_id: 61047[/import]

+1, it would be extremely helpful feature [import]uid: 16142 topic_id: 16203 reply_id: 61070[/import]

+1 sure it would be extremely helpful [import]uid: 91460 topic_id: 16203 reply_id: 62608[/import]