any way to control ParticleSystem/Particle display group?

Hi

Making a game where the character is always centered, moving around a level. I wanted to use the ParticleSystem to generate the  obstacles for the level. However, i can’t find in the API how to assign the particle system to a particular diplay group - so when i move around the group with my character in it (to keep the character  centered) i find the particles physics BODY moves, but the image doesn’t - it stays stuck on the parent container group

Should i just stick to regular display objects with physics?

https://coronalabs.com/blog/2014/05/27/tutorial-introduction-to-liquidfun/ there is a comment that makes me think it should be possible, but i can’t find a way in the api

I was hoping to also use the particles as bullets/water cannon for the character, but I think i would have this same problem 

any guidance appreciated

thanks

I can see they are attached to the display.currentStage (the root stage) so when i move that, it works fine - but this is less than ideal always having to move the root group when using particles. Anyone have any ideas or work arounds?

i think i found the answer - i was expecting similar api to other objects where you pass in group to attach to - but i just realized can use group:insert to add the particle emitter to the layer

I can see they are attached to the display.currentStage (the root stage) so when i move that, it works fine - but this is less than ideal always having to move the root group when using particles. Anyone have any ideas or work arounds?

i think i found the answer - i was expecting similar api to other objects where you pass in group to attach to - but i just realized can use group:insert to add the particle emitter to the layer

1 Like