Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
其实问题就在标题里。无论如何,我想重复一遍: 问题:如何将两个不同的 CCAction 应用于两个不同的 CCSprite 并在一个 CCLayer 上同时运行它们?
提前致谢!
CCLayer 与此无关。您只需一个接一个地发送带有操作的 runAction 消息,以使操作同时开始运行:
id action1 = [CCFadeOut actionWithDuration:1]; [sprite1 runAction:action1]; id action2 = [CCFadeIn actionWithDuration:1]; [sprite2 runAction:action2];