我使用的第一个图像...删除与间隔
[self addChild:self.blue_action];
[self schedule:@selector(updateTimer1:) interval:1.0f];
通过这条线,我想在任何位置显示的图像和一段时间后,该图像将去除,通过“[自我removeChild之: self.blue_action cleanUp:是];'
-(void)updateTimer1:(id)sender {
if(time_1 == 0) {
NSLog(@"time value ");
[self removeChild:self.blue_action cleanup:YES];
[self schedule: @selector(updateTimer1:) interval:0.10];
}
else {
--time_1;
}
}