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

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

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.