objective c - Compostion of -schedule:(SEL)selector in Cocos2d -


i have spritehandler object composes (has) ccsprite. composes behavior object has method -update:(cctime)dt, , method -updateselector returns @selector(update:). in spritehandler object, want use method -schedule:(sel)selector, implemented ccsprite. call [sprite schedule:[behavior getupdateselector]] fails; can figure out how schedule if subclass ccnode. there way through composition?

do want run once or every frame? mean, fails?

in case [sprite schedule:@selector(behaviourmethod)] doesn't work try instead:

[[ccscheduler sharedscheduler] scheduleselector:@selector(behaviourmethod) fortarget:self interval:0.1 paused:no]; 

Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -