COCOS2D-iPhone – How to determine if the elves are in the layer

Sorry if this sounds trivial. I just didn’t get it. How can I determine if a particular sprite already exists in the layer? Basically, I need to check this before deciding whether to add it to the layer.
if ( [myNode.children indexOfObject:sprite] == NSNotFound) {

// you can add the code here

}

Sorry, if this sounds trivial. I just didn’t get it. How can I determine if a particular sprite already exists in the layer? Basically, I need to check this before deciding whether to add it to the layer.

if ([myNode.children indexOfObject:sprite] == NSNotFound) {

// you can add the code here

}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3653 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.