在cocos2d中对不同的命令进行排队(CCSequene)
我正在尝试使标签从屏幕上淡出,然后在完成后将其从视图中删除。如何对其进行排队,以便视图等待标签完全褪色后再将其删除?
id sequence = [CCSequence actions:[splashLabel runAction:[CCFadeOut actionWithDuration:0.5]], [self removeChild:splashLabel cleanup:YES], nil];
[self runAction:sequence];
I'm trying to make a label fade out from the screen, then after that if finished remove it from the view. How do I queue it so that the view waits for the label to be fully faded before it removes it?
id sequence = [CCSequence actions:[splashLabel runAction:[CCFadeOut actionWithDuration:0.5]], [self removeChild:splashLabel cleanup:YES], nil];
[self runAction:sequence];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)