Jump to content

Particle Trail


icp
 Share

Recommended Posts

I created a particle trail via emitter.

It has its x and y properties set to the mainSprite .

I would  like to adjust the particle anchor so they appear from the back of the sprite , not from its middle.

I tried the following :

 

- adjusting the mainSprite anchor, however this affects the physics system and the input manager too so it's not an option.

- setting the emitter position to mainSprite.x - offset(it  only works if the sprite is moving on the x axis).

- making the emitter a child of mainSprite (the trail stops working properly and you can't set the z-depth).

 

If I won't find a solution I will adjust the mainSprite texture size so everything goes well with mainSprite.anchor.setTo(0.5, 0.5).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...