auto hp = (Sprite*)Center->getChildByName(“HP”);
auto hpaction = CSLoader::createTimeline(“nGameMainBar/GameMainBar.csb”);
hp->runAction(hpaction);
hpaction->play(“HP”, true);
动画能正常播放
但一直报
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_01.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_02.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_03.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_04.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_05.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_06.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_07.png’ isn’t found
cocos2d: SpriteFrameCache: Frame ‘G:/test/proj.win32/Debug.win32/Resources/res/nGameMainBar/PNG/HP/hp_08.png’ isn’t found