Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:28:32+00:00 2026-06-18T05:28:32+00:00

In my app I have a showPauseMenu method that pause the director and shows

  • 0

In my app I have a showPauseMenu method that pause the director and shows my pause menu. What I would like is to have this method automatically called when the app enters the background (when the person receives a phone call, hits the home button, etc.). I believe I’m going to have to use a class method or something like that. Any ideas?

Update: I now have the method successfully being called upon the app re-entering the foreground. The director gets paused but my menu to unease never shows up. My menu is a CCLayer that while the app is in the foreground is off-screen. So in the pauseGameLayer I simply set the pauseMenuLayer.position = ccp(0,0); and pause the director. Like I said the director gets paused but the layer doesn’t move to the new position.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:28:33+00:00Added an answer on June 18, 2026 at 5:28 am

    To best solve my problem of having a pause menu pop up on its own when the app enters the background, this is what I did. I first set up a variable (isPlaying) in my singleton class. If the app was about to enter the background (I used applicationWillResignActive in the AppDelegate) isPlaying was set to TRUE. In my update function within the game would check to see if isPlaying was set to TRUE and as soon as it was it would launch the the function to display the pause menu. Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app ,that log print something like this: GC_CONCURRENT freed 433k,7% free
My app have a background image that fills the screen. I'd like to display
Ok this is going to sound strange, but I have inherited an app that
I'm new to Django... I have installed a Django external App called Haystack, this
This is a continuation of the question here: JBoss - does app have to
we have app hosted on google app engine for java. In this app we
I have a little app that have by default youtube as homepage. You can
I have app in which i have recorded sound files i want that i
I have received this error when logging into my app. It appears to me
i have in my localhost:8111 a restlet app running. This app have a ServerResource

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.