-(void)test:(CCMenuItemSprite*)item
{
[item runAction:action];
[[CCDirector sharedDirector] replaceScene:sceneToRun];
}
how do i make it so that item completes the action before the scene gets replaced? Thanks
-(void)test:(CCMenuItemSprite*)item
{
[item runAction:action];
[[CCDirector sharedDirector] replaceScene:sceneToRun];
}
how do i make it so that item completes the action before the scene gets replaced? Thanks
You would do something like:
Assume the ... represents the creation of the item. If you are using cocos2d 3.0 you would do something like:
Hope this helps.