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

  • Home
  • SEARCH
  • 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 6832877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:54:44+00:00 2026-05-26T22:54:44+00:00

My tilemap has a torch tile. I am using a CCParticleSystemQuad emitter to make

  • 0

My tilemap has a “torch” tile. I am using a CCParticleSystemQuad emitter to make the fire effect.

The emitter is children of the tilemap (directly above the torch tile).

However, the player can move and the tilemap will move as well (to center the “camera” on the player). When that happens, naturally the emitter will move as well. But here’s the problem: such movement gives an effect like…. like if the torch was moving, and not the player (which is actually the case, but this effect isn’t good).

Hard to explain. Just make a fire emitter, put as children of tilemap, and move the tilemap to the right. The effect is cool but doesn’t make sense.

Any ideas? I though of moving every single existing particle in the emitter, but that doesn’t sound good for performance (I got lots of emitters with hundreds/thousands of particles, and the map scrolls almost every single frame)

  • 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-26T22:54:45+00:00Added an answer on May 26, 2026 at 10:54 pm

    The CCParticleSystem has a positionType property with which you can change the position behavior of the emitted particles.

    The enum is defined as follows:

    typedef enum {
        /** Living particles are attached to the world and are unaffected by emitter repositioning. */
        kCCPositionTypeFree,
    
        /** Living particles are attached to the world but will follow the emitter repositioning.
         Use case: Attach an emitter to an sprite, and you want that the emitter follows the sprite.
         */
        kCCPositionTypeRelative,
    
        /** Living particles are attached to the emitter and are translated along with it. */
        kCCPositionTypeGrouped,
    }tCCPositionType;
    

    You will want your particles to be positioned either relative or grouped. There’s a subtle difference between the two, just try one and then the other to see which fits your use case better.

    particleSystem.positionType = kCCPositionTypeRelative;
    particleSystem.positionType = kCCPositionTypeGrouped;
    

    Btw, this is one of the few settings that can’t be changed in the ParticleDesigner tool.

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

Sidebar

Related Questions

I'm trying to make something of a Tile-Map editor in C# using picture-boxes (the
I am making a tile game. Was following http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d . Using the whole screen
I'm using tiled to create a tile map. (Tiled is a tile map editor
I'm using C++ to create a tile map for a game. My problem is,
I'm using cocos2d for the iPhone to create an infinitely scrolling horizontal tile map.
I'm trying to make my character move around a tile map with collisions. Everything
I am using opengl in a tilemap editor. Storing the tilemap in GL_LUMINANCE32F format,
I'd like to overlay a custom map using MapKit. I've currently implemented the TileMap
I'm implementing a tile engine for games using C++. Currently the game is divided
Why this code does not compile (Cygwin)? #include <vector> template <class Ttile> class Tilemap

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.