Using a SKAction sequence I am trying to add a delay and then call a method with two parameters, however I keep getting the following (new to obj c so could be something simple):
// code
SKAction *fireAction = [SKAction sequence:@[[SKAction waitForDuration:1.5 withRange:0],
[SKAction performSelector:@selector(addExplosion:firstBody.node.position andTheName: @"whiteExplosion") onTarget:self]]];
// error
Expected ':'
Method declaration
-(void) addExplosion : (CGPoint) position andTheName :(NSString *) explosionName{
When I substitute a method call without parameters seems to work fine.
Any input appreciated.