I would like to create an object that has to be dragged. I want this object to have sub objects inside. Imagine the object is a house, just the contour and that every window and door is a subobject, so when I create the house, I can specify if each window is open, closed or the color of the glass. This object have to be dragged and when it is dragged its elements have to drag together.
What is the best way to do that using UIGestureRecognizer?
1) should I create the house as CCLayer, add the elements (windows, doors, etc.) as CCSprites to that CCLayer and add the gesture recognizer to the CClayer?
Does this sounds like the correct approach or what is the best one?
thanks