Writing the code by dividing it into more files in cocoatouch.
- by srikanth rongali
My problem is, I need a background image, a sprite(with animation) on left edge, another sprite(with animation) at other edge, a number count animation 1-2-3 at middle.
I got all these when I wrote all in same file.(like [self addChild:label], [self addChild:sprite]..,
But in this it needs touch enables for both sprites separately, and touchDisabled to the remaining screen. So thought of writing in different files. But now it is not working.
I kept one sprite, background image, numbercount in one file and another spritr in other file.
Either I am getting the second sprite or the (sprite+background+numberCount) is displayed.
This is my problem.
plz give me solution.
Thank You