Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want a transparent CCScene (or CCLayer) to slide down when the game is paused...and I want it to be clear enough to see the CCLayer behind it.

How could I do this? Thanks

share|improve this question
up vote 3 down vote accepted

You can use the opacity property on CCLayer. Any child you have added to that layer will also be affected.

share|improve this answer
Where would I put that? In my First layer or the layer I am going to (The sliding transparent layer)? – Coder404 Jun 11 '12 at 23:17
@Coder404 The sliding transparent layer would be the one you make transparent. You would need to add the layer as a child over the layer that all of your game objects are on. You can do this using addChild:z:. Might be helpful to dive into the docs a bit deeper. – jluebbert Jul 26 '12 at 19:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.