system.pause( ), system.resume( ) now available

_pause.lua is now available for download at http://j-strahan.com/main2/_pause-lua/

https://www.youtube.com/watch?v=2c1YKHnhoQM

Very easy to use module. Thanks @jstrahan for creating _pause.lua. Great work. 

thanks ksan

@jstrahan,

  1. You should charge more for your plugin/utility.  This is a really great idea and I’m excited to try it out.

  2. Does it get e-mailed after paying via PayPal?

-Ed

thanks
yes you should get an email
I’ll check and see if it was sent

@roaminggamer

just sent you email

installed a new cart. if you do not get download email/link please let me know. price is $4.99. use   4_OFF_PAUSE   at check out to get $4.00 off. coupon good until 4-11-14

That is flippin’ awesome, and at that price as well??  Jeff you are a legend.  

thx Appletteeman

new version 0.7 ready for download.

transition.to bug fix

added system.overlayPause() function

@jstrahan,

Hi. I got the e-mail. I also got the update. Thanks!

I’ll be giving this a try tonight and will give feedback later. Meanwhile, again, awesome idea. Thanks for putting the time into this!

Cheers,
Ed

_pause.lua is now available for download at http://j-strahan.com/main2/_pause-lua/

https://www.youtube.com/watch?v=2c1YKHnhoQM

It’s a great module… but can you explain how to implement it in the above rag dog flappy bird template. I’m trying to implement it but i guess my coding knowledge is that of a beginner.

I’m not at computer at the moment won’t be till later tonite

OK thank you and have a good weekend.

welcome
I can tell you all the pause code was added to top if main.lua and just two lines added to gameScene.lua
perhaps ksan can share the lines if code I added if he gets a chance before me

In gameScene.lua, put the following in 

in function activateGameOver … around line 77/78

---------------------------- -- hide pause button   system.hidePause() ----------------------------

in function scene:createScene( ) right at the top

  system.resetPause()

in function bg:touch(event) which itself is in  function scene:createScene( ), right after tutorialIMG = nil;  

------------------------------ show pause button   system.showPause() ----------------------------

Hope this helps.

i’ve posted a tutorial on how I added pause to the flappy template.

http://j-strahan.com/main2/_pause-lua/

Thank you ksan and jstrahan, for the code and tutorial

added a second tutorial. adding it to the endless scroller tutorial from the code exchange.

Very easy to use module. Thanks @jstrahan for creating _pause.lua. Great work.