Hi all,
I've set up an IntervalAction and want to pass an AtlasSprite
reference to another method, but when the action runs I receive
the following runtime error...
'unrecognized selector sent to instance'
I think there's probably something wrong with my syntax,
can anyone advise, thanks? My code is below:
-(void) impact: (AtlasSprite*) target {
IntervalAction *impactSequence = [Sequence actions:
[DelayTime actionWithDuration:5],
[CallFunc actionWithTarget:self selector:@selector(moveTarget:target:)],
nil];
}
-(void) moveTarget: (AtlasSprite*) target {
// Do stuff with the received AtlasSprite 'target' reference
}