我对CCMenu
有一个操作,该操作是CCLayer
的子操作 - 他是scroller
的孩子。 (cocos2d的滚动层类)无法在cocos2d中停止操作
有一个动作在此CCMenu
上运行,它有一个名称和一个标记。
我只是不能阻止它。当我试图去它,我看到空值。 我试过了:
[[[CCDirector sharedDirector].runningScene getChildByTag:600] stopAction:repeat];
[[[[CCDirector sharedDirector].runningScene getChildByTag:600]getChildByTag:800 ]stopAction:repeat];
[[[CCDirector sharedDirector].runningScene getChildByTag:600] stopAllActions];
[self stopAllActions];
什么都没有。 无法停止该操作。 如何停止我的CCScene
中的所有操作?
您只查看当前正在运行的场景的子项,这将是其中一个图层(滚动条?)。我认为您需要深入到节点层次结构中才能进入CCMenu。据我所知,“getChildByTag:”只能传给直接的孩子,而不是孩子的孩子。 – Sylvan