ios - Not possible to add child nodes to sprite for CCProgressTimer? -
i'm trying add child nodes sprite , use ccprogresstimer
gradually reveal it. child node, in case cclabelttf
not appearing on screen @ all. can see testsprite
.
ccsprite *testsprite = [ccsprite spritewithfile:@"btnsmall-red-normal.png"]; cclabelttf *labeltest = [cclabelttf labelwithstring:@"testing123" fontname:@"marker felt" fontsize:64]; [labeltest setposition:ccpmult( ccpfromsize(testsprite.contentsize), 0.5f )]; [testsprite addchild: labeltest]; ccprogresstimer *testpt = [ccprogresstimer progresswithsprite:testsprite]; [self addchild:testpt]; testpt.position = ccp(windowsize.width/2, windowsize.height/2+100); testpt.percentage = 100;
Comments
Post a Comment