Why selector is not getting called in cocos2d? -
can please review code written below , tell me why tick method never getting called.
-(void)okpressed { cclabelttf *getreadylabel = [cclabelttf labelwithstring:@"get ready" fontname:@"backbreaker.ttf" fontsize:30]; [self addchild:getreadylabel]; getreadylabel.position = ccp(_winsize.width/2,_winsize.height/2); [self schedule:@selector(tick:) interval: 0.1]; } -(void)tick:(cctime)dt { cclog(@"dt=%f",dt); }
when run code, getreadylable showing in centre of screen, tick method never getting called. doing wrong?
Comments
Post a Comment