Hi guys
This has been killing my brain for about 2 hours so thought I'd ask for some help :D
I have a class defined as such:
card.h:
@interface cardinfo : NSObject
{
CCSprite *card;
bool faceup;
int value;
int suit;
int cardnum;
id fadeout;
id fadein;
}
@property(nonatomic, assign) CCSprite *card;
@property(nonatomic) bool faceup;
@property(nonatomic) int value;
@property(nonatomic) int suit;
@property(nonatomic) int cardnum;
-(void) Flip;
-(void) Flip2:(ccTime)dt;
-(void) SetPosition: (int)x: (int)y;
@end
card.m:
@implementation cardinfo
@synthesize card,faceup,value,suit,cardnum;
-(void) Flip{
fadeout = [CCScaleTo actionWithDuration:0.1 scaleX:-0 scaleY:1];
[card runAction:fadeout];
//[card schedule:@selector(Flip2:) interval:0.1];
}
-(void) Flip2: (ccTime)dt{
fadein = [CCScaleTo actionWithDuration:0.1 scaleX:1 scaleY:1];
[card runAction:fadein];
[card unschedule:@selector(Flip2:)];
}
-(void) SetPosition: (int)x: (int)y{
[card setPosition:ccp(x,y)];
}
@end
And as you can Flip should schedule Flip2 however I keeps crashing with error:
"Signature not found for selector - does it have the following form? -(void) name: (ccTime) dt"
If i comment out the schedule within the flip function all works ok.
Am I missing something, or should I be doing something differently?
Any help would be appreciated