Before writing .. I'm sorry to my fool english :sweat:
When I found spinosaurus project in spine. I want to check that it is able to real game menu Scene.
I use cocos2d-x and Visual 2012. but I don't know How I check each Button? play, setting, quit..
I want when I touch play then go to next Scene and when I touch setting then programe go to setting Scene ...
plz Help me Detailed explanation
thanks 🙂
bool MenuScene::init()
{
bool bRet = false;
do
{
CC_BREAK_IF(! CCLayerColor::initWithColor(ccc4(255,255,255,255)) );
menuAnimation = CCSkeletonAnimation::createWithFile("spinosaurus.json","spinosaurus.atlas");
menuAnimation->setAnimation("animation", true);
menuAnimation->timeScale = 0.6f;
menuAnimation->setScale(0.77f);
CCSize windowSize = CCDirector::sharedDirector()->getWinSize();
menuAnimation->setPosition(windowSize.width/2,windowSize.height/2);
Bone* startButton = menuAnimation->findBone("play");
//startButton->
this->addChild(menuAnimation,0);
bRet = true;
} while (0);
return bRet;
}