I'm trying to call a function to play an animation for my character in the middle of a sequence. I have the function call working buy how do I send integer variables to it?
[hero standStill];
id move1 = [CCMoveTo actionWithDuration:.1 position:ccp(s.position.x,s.position.y)];
id b = [CCCallFunc actionWithTarget:self selector:@selector(testFunct:)];
id c = [CCCallFunc actionWithTarget:self selector:@selector(testFunctB:)];
id move2 = [CCMoveTo actionWithDuration:.5 position:ccp(hero.position.x, hero.position.y)];
id seq = [CCSequence actions:move1, b, move2, c, nil];
[hero runAction:seq];
I tried doing c.tag = 32; but I just get an error message.