I have created some clouds for my 2D game, and i want to make them float on the background slowly from the one side to the other. Then when they are out of view, i want to reset them and make make them float back into view.
Here is a random example of how they can look:
To create my clouds, i am using a particle emitter, renderer and animator. They are set to one-shot btw, and spawn at random places when the game starts
By setting a velocity on them, i can make them float, however when the ‘energy’ has been depleted, they reset regardless of if i want them to or not.
Can i programatically move these clouds about?
Of course i tried to programmatically move the GameObject that they are attached to, but the clouds (particles) do not follow this object and stay at their original position.
I’ve been looking around about how others did it, and had a peek at several reference materials, but i’m still unsure of how to do it. So it would be nice if someone could point me in the right direction.
Thanks for your help in advance, and let me know if i can provide some more details!