Writing the code iby dividing it into more files.
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-03-13T09:18:26Z
Indexed on
2010/03/13
9:25 UTC
Read the original article
Hit count: 198
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
© Stack Overflow or respective owner