CCActionInterval in menu_selector!

CCActionInterval in menu_selector!
0.0 0


Hello to everybody!

I want to hide my Layer by clicking the menu item with CCMoveTo Action.

So I created a class MenuLayer : public cocos2d::CCLayer
and added there a menu item
CCMenuItemImage *mSettingsItem = CCMenuItemImage::itemFromNormalImage(

So menuSettings function looks like this:
void MenuLayer::menuSettings(CCObject* pSender)
When I try to click Settings menu Item I get en error wich redirrects me to the CCActionManager.cpp at line 205 pAction~~>startWithTarget(pTarget);

Please help me! I need to run Action on the Menu item click. (0.8 KB)


Nobody can help me? Hey ! Where are you all?


You should retain hideMenu.


yes - thanks! That was the reason!