Tag Archives: Java Timer

How to use CCProgressTimer in Cocos2D to show progress?

By | April 7, 2012

The progress timer takes a sprite and, based on a percentage, displays only a part of it to visualize some kind of progress in your game. [java] CCProgressTimer* timer = [CCProgressTimer progressWithFile:@"progress.png"]; timer.type = kCCProgressTimerTypeRadialCCW; timer.percentage = 0; [self addChild:timer z:1 tag: my_tag]; // The update is needed for the progress timer. [self scheduleUpdate]; [/java] You can choose… Read More »