- (void)tapped:(id)sender
{
if (counter ==1) {
bluetest.position = ccp(400, 400);
}
}
blue = [[CCMenuItemImage
itemFromNormalImage:@"blue.png" selectedImage:@"blueclick.png"
target:self selector:@selector(tapped:)]; //error occurs here
bluetest.position = ccp(175, 350);
bluetest = [CCMenu menuWithItems:blue, nil];
bluetest.position = CGPointZero;
bluetest.scale = .75;
[self addChild:bluetest z:3];
错误显示“预期的标识符”。我能做些什么来修复错误?