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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -