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

  • Home
  • SEARCH
  • 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 6075731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:31:38+00:00 2026-05-23T10:31:38+00:00

I was trying to create a gameover screen. It would create a new layer

  • 0

I was trying to create a gameover screen. It would create a new layer and place it on top of the current game layer and have a menu which would allow you to go home. But the menu doesn’t respond after I pause all actions, any way around this? Thanks!

 //Pause all actions
    [[CCDirector sharedDirector] pause];

    //Create new black layer
    CCLayerColor *gameover = [CCLayerColor layerWithColor:ccc4(0, 0, 0, 75)];
    [self addChild:gameover z:1];

    //add menu
    CCMenuItemFont *item1 = [CCMenuItemFont itemFromString:@"Continue" target:self selector:@selector(goToMainMenu)];
    CCMenu *menu = [CCMenu menuWithItems:item1, nil];
    [gameover addChild:menu z:110];

EDIT: I am trying to create a transparent layer on top

  • 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-05-23T10:31:38+00:00Added an answer on May 23, 2026 at 10:31 am

    Pausing the shared director pauses everything… I just asked this yesterday:

    Is there anyway to have a the menu work even when I pause the game?

    You can do what the guy did and also another method I found which was just inactivating all your scheduled selectors (i.e. [self unschedule:@selector(gameLogicLoop:)];)

    And then you can reschedule the stuff after you are done clicking the menu ([self schedule:@selector(gameLogicLoop:)];).

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

Sidebar

Related Questions

I'm new to both android and game development and have been trying to create
I'm new to android, and I'm trying my best to create a game. I'm
I am trying create a data.frame from which to create a graph. I have
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Trying to create my first iPhone app that would play back audio. When I
Trying to create a small monitor application that displays current internet usage as percentage
hi I'm trying create chat using node.js I see example in http://chat.nodejs.org/ I have
I'm trying create a new file with a Java Applet, but I don't know
I'm trying create a scaling layout for an Android application. The whole screen should
While Trying to create a Menu to SubMenu using InsertMenuItem: MENUITEMINFO mii = {

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.