Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.