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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:28:10+00:00 2026-06-16T08:28:10+00:00

I have a CCSprite that can bounce around the iPhone’s screen. This sprite has

  • 0

I have a CCSprite that can bounce around the iPhone’s screen. This sprite has a CCParticleSystemQuad as a child node. The particles are just small, simple circles that trail behind the moving sprite. Everything works fine until the sprite rotates due to collision with a screen edge. When this happens the existing particles are suddenly drawn in a strange location.

Any idea why this is happening?

I’ve tried a few things so far. First I tried all three positionType values for the particle system. None of these fixed the rotating problem. The actual rotation is done with a CCRotateTo. Removing this action fixes the particle location problem. So perhaps rotating a CCSprite child node on a CCLayer could replace my current CCSprite. I tried reading through http://www.cocos2d-iphone.org/forum/topic/63951 but it’s a bit over my head. Any feedback and suggestions are greatly appreciated!

Edit #1 I found a quick fix: immediately before the CCRotateTo I tell the trailing particles to resetSystem. However I’d still like to understand the cause of the odd drawing behavior.

  • 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-16T08:28:11+00:00Added an answer on June 16, 2026 at 8:28 am

    I think this is happening because of the CCParticleSystem being a child of the CCSprite, then any position or rotation that you do on the sprite will affect the behavior of all the particles that are being and have already been emitted. So if you have some trailing particles that are still lingering on screen, they are still children of the CCSprite, and rotating it will cause all of the lingering particles to rotate around the sprite’s current position.

    If you want to eliminate this effect, you could add the CCParticleSystem to the layer, so that it will be unaffected by the CCSprite’s rotation. The downside to this approach is that you will have to add code to have the CCParticleSystem track the position of the CCSprite since it is no longer a child of the CCSprite. That should be pretty easy to do however.

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

Sidebar

Related Questions

I have a sprite in my iPhone game, how can make it so that
I have a CCSprite called sprite that is a child of a CCLayer called
I have a CCSprite that has all its properties modified: rotation, scale, skewX, skewY,
I'm trying to create a extended CCSprite class that can detect touches. I have
I have multiple sprites placed onto a background sprite like this: //my background CCSprite
I have a Balloon class (see this ) that inherits from CCSprite . I
Let's say we have a CCSprite object that has an actions tied to it:
I have a CCSprite that I want to move around using gestures. Problem is
I have a CCSprite and a CCParticleSystemQuad that are both children of the CCLayer.
I have a sprite that changes texture (basically different color). I want to change

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.