Basically I want to do what the title says. I already have it so one button will work but when I press the other one it wont work until the method for the first button stops. Heres what I have so far:
if(score == 5){
CCMenuItem *button = [CCMenuItemImage itemFromNormalImage:@"blueButton.png" selectedImage:@"blueButton.png" target:self selector:@selector(button1RewardMethod:)];
blueMenu = [CCMenu menuWithItems:blue, nil];
blueMenu.position = ccp(winSize.width/2,50);
[self addChild:blueMenu];
}else if(score == 10) {
CCMenuItem *button2 = [CCMenuItemImage itemFromNormalImage:@"greenButton.png" selectedImage:@"greenButton.png" target:self selector:@selector(button2RewardMethod:)];
greenMenu = [CCMenu menuWithItems:green, nil];
greenMenu.position = ccp(winSize.width/4,50);
[self addChild:greenMenu];
}
Each method for each button does something for a certain amount of seconds. Lets say score gets to 10 and both menus are on screen. When I press one it would work but when I try to press the other it wont work? Should it be able to do that?
Thanks Jason Chitla