Hi.
I'm an old procedural programmer who has problems with some Objective-C / Cocos2d concepts.
Here is an example of what I don't understand:
-You have a gameScene object which is a subclass of Scene.
-In that gameScene, I have 2 layers: gameLayer and controlLayer.
-controlLayer has 1 menu Object with 2 Arrow menu items.
-in the Control layer, I have 2 BOOL variables (synthesized) that get updated in a tick method when the buttons are pressed or not.
How can I communicate with the Gamelayer from the Controllayer?
I have a tick method in gameScene where I try to move a sprite when the BOOL is set to 1.
I've read pretty much every example and tutorial available but fail to understand how to communicate with parent's childs and different layers.