I tried to use CCMenu and addChild to add CCMenuItem, when I call CCMenu getChildByTag. I got message says: “getActionByTag: Target not found”.
Any idea what is wrong.
The sample code is:
CCMenuItemImage speaker = CCMenuItemImage::itemFromNormalImage);
CCMenu menu = CCMenu::menuWithItem;
CCMenuItemImage**item = menu~~>getChildByTag;*\ here does not work.
Any idea what I did wrong here?