Sign in to follow this  
icp

Particle Trail

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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.