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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -