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 6903755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:57:54+00:00 2026-05-27T07:57:54+00:00

I have a CCRepeatForever action with a tag of 20. I call this: [player

  • 0

I have a CCRepeatForever action with a tag of 20. I call this:

  [player stopActionByTag:20];

Noting happens.

I call this:

  [player stopAllActions];

It stops. Any idea? The action is created like this and runs fine:

 CCRepeatForever *repeat=[CCRepeatForever actionWithAction:animate];
 repeat.tag=20;

 [player runAction:repeat];

update: i also tried setting animate.tag=21 and stopping that action by itself or in addition to the repeat action, but neither works.

  • 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-05-27T07:57:55+00:00Added an answer on May 27, 2026 at 7:57 am

    This should work, I made a quick test with stopActionWithTag using CCRepeatForever and it stops it correctly.

    I can only imagine two cases where it wouldn’t work:

    1. You have more than one action with the tag = 20 running on the same object.
    2. The object you send runAction to is a different object than the one you send stopActionByTag to.

    The former is easy to check. If this code fixes your problem, you’re running multiple actions with the same tag on the player object:

    while ([player getActionByTag:20]) {
        [player stopActionByTag:20];
    };
    

    The latter is rather unlikely but possible. One way to find out is to set a breakpoint on the runAction line and note the address of the player variable. Then set another breakpoint at the stopActionByTag line and compare that player’s address with the previous one. If they’re not the same, then that would be the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have this method call: -> simpleJdbcTemplate.queryForInt(SQL,null); -> queryForInt() method in the springs SimpleJdbcTemplate throws
Have you any idea how to find out if spell check suggestions dialog is
have written this little class, which generates a UUID every time an object of
Have done quite a bit of searching for a guide (of any substance) for
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
Have been trying to figure this problem out for a while now and was
have Intel Core i7 laptop with 8 GB ram. This is my first time
Have not done this before, so obviously I suck at it. Here 64 pixels
Have created a ATL COM project through which I am inserting Menu Items to
Have not done this before ( except in java , look how Steve McLeod

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.