Updating screen on gameWillPause

,

Hello!

I've been working with the system menu too lately and I might have an answer for you.

GameWillPause takes in information when called, but the updated will not apply until the system menu is closed.

I recommend creating a local image during gameWillPause that covers your screen or system menu (depending on what you’re doing). That way it’s already drawn when you close the menu.

local tempMenuDisplay = gfx.image.new(“images/yourPreDrawnMenuImage”)

gfx.pushContext(tempMenuDisplay)

-- or make a new image and draw to it

gfx.popContext()

pd.setMenuImage(tempMenuDisplay, 0)

*Another Option is to use setMenuImage and use the offset option in the second condition. You can push the “screenshot” it takes of your game when you pause off further to the left. This creates a bouncy slide animation as it moves your image out of the way.

These two posts helped me out with this:
Menu Image
Resuming from Pause

Let me know if this cleared things up. This is my first time responding trying to help out so apologies if I’m not making sense.

1 Like