Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9032409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:58:34+00:00 2026-06-16T07:58:34+00:00

Perhaps this question have been repeated many time, but I couldn’t found helpful material.

  • 0

Perhaps this question have been repeated many time, but I couldn’t found helpful material. Also this is my first project in cocos2D, i want to implement the ProgressBar, CCProgressTimer in cocos2D. I have two sprites, first is moving and the second one is the player (to which you can move), If user successfully eat the first moving object then the progress should be incremented else if it misses then the progress will be decremented. I need your help. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:58:35+00:00Added an answer on June 16, 2026 at 7:58 am

    Here is my code I used for rounded CCProgressTimers (it looks like clock). You possibly need to have a background sprite and a “movable” sprite above background sprite.

    CCSprite *movableSprite = [CCSprite spriteWithFile:@"health100.png"];
    CCProgressTimer *healthBar = [CCProgressTimer progressWithSprite:movableSprite];
    healthBar.type = kCCProgressTimerTypeRadial; // This is for round progress timer. Possible value for horizontal bar will be kCCProgressTimerTypeHorizontalBarLR
    
    healthBar.midpoint = ccp(0,0.5); // Here is where all magic is
    healthBar.barChangeRate = ccp(1, 0); // If you need horizontal bar progress play with these parameters.
    
    // Here we will start an animation process. 
    // You can do it without animation just setting up healthBar.progress = 45.0f; (45%)
    [healthBar runAction:[CCProgressFromTo actionWithDuration:2.0f from:0.0f to:100.0f]];        
    
    healthBar.position = ccp(100, 100); // It's your position
    
    [self addChild:healthBar];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question has been asked many times before, but I haven't found
I have an ObjectDataSource (but perhaps this question is the same for all kinds
Perhaps this question has been asked elsewhere, but I'm unable to find it. With
This question has been asked before perhaps multiple times, but I can't get the
A silly question, perhaps, but at this time of night, StackOverFlow is my only
I have been looking everywhere for an answer to this question - perhaps I'm
I'm well aware that variants of this question have been asked before, but I
I've searched SO and this question seems to have been asked multiple times, but
This question perhaps has been answered earlier, but I did not see an answer.
I've already seen this question but it's been asked over a year ago. Perhaps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.