Am I creating a pun and I want to hide the panel when the application is paused?
the code looks great, but it causes strange behavior !!,
when I pause the application, nothing will happen, but when I resume the application, then the panel will disappear!
local onSystem = function( event ) if event.type == "applicationSuspend" then print("suspend") board_group.alpha = 0 end end Runtime:addEventListener( "system", onSystem )
Note. You may wonder how can I find out what the application looks like when paused? Answer: Double-click the "Home" button.
Example
SpellTower in good condition
http://cl.ly/image/0A0n0v1A2q0C/o
SpellTower after double-clicking the home button
http://cl.ly/image/2D0p3I3d3T3h/o
you can see how they hide the letters, this is exactly what I want to do for my game, the only difference is that I use the Corona SDK
source share