I created a GameObject called fireflies and I added in it a Particle System component, so it spawns little lights as it they were fireflies.
The problem is: I can, for example, place the GameObject fireflies in the position (0,0,0) and it would spawn fireflies in a given radius, but then I would have to place a lot of them to cover the whole map.
The solution I thought: I’d like to put fireflies as a child of the GameObject player so that the particles would always spawn in the place the player is at.
My solution’s problem: the particles, that before were moving independently, now follow the player, for example, a particle spawns near the player and moves correctly, but if the player moves 10 units in X axis, so will move the particle.
Is there any workaround for my solution to work?
By work, I mean, the fireflies should spawn near the player position but move independently.
Should I go for another approach?