How do I make particles appear in the Background?

I’ve been implementing particles into my game, and I want to have particles floating in the background of my game behind the character and the obstacles. The problem is, when I create an emitter, the particles always appear in front of everything on the screen. I’ve tried to use object:toFront() to place the objects in front of the Obstacles, but it doesn’t work.

Any ideas on how to fix this? Any help is much appreciated!

Put the particles and other objects in different display groups and make sure the particle group is behind the other group.

How would I do this? I know there’s sceneGroup, so I made another one with:

bkgGroup = self.view

I put the particles in that and used sceneGroup:toFront(), but the particles still appear in front. What do?

I still need help with this, thanks!

Put the particles and other objects in different display groups and make sure the particle group is behind the other group.

How would I do this? I know there’s sceneGroup, so I made another one with:

bkgGroup = self.view

I put the particles in that and used sceneGroup:toFront(), but the particles still appear in front. What do?

I still need help with this, thanks!