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 to make a game in cocos2d. I don't know too much about it.

My question is related to communication between two layers or more. For instance, let's say I want a layer with a scrolling road and another on top with scrolling clouds.

Is there anything built-in cocos2d for doing that, or any reference link?

share|improve this question
    
Your question might be a bit too broad to get an answer. Could you try being a bit more specific, i.e. describe with more details the actual issue that you face? –  Laurent Couvidou Sep 12 '12 at 11:40
add comment

1 Answer

In cocos2d you can add a layer/node to another layer/node. So for instance, your parent layer could contain the scrolling road and have a child layer that scrolls the clouds. With this you have a reference to both your parent layer and child layers to work with. It all really depends though.

share|improve this answer
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.