-(void)playpattern {
for (int i = 0; i < 36; i++) {
int button = myIntegers [i];
if (button==1) {
[yellow setVisible:NO];
}
}
低于初始化
for (int i = 0; i < 36; i++)
myIntegers [i]=(i%4)+1;
yellowbg = [CCSprite spriteWithFile:@"yellowxlixk.png"];
[yellowbg setPosition:ccp(509, 671.75)];
yellowbg.scale = .75;
[self addChild:yellowbg z: 1];
[self playpattern];
}
return self;
}
如何在启动时延迟此操作?我对此很陌生,请在您的解释中保持基本。如果我需要添加任何内容,请告诉我。