I use particles (one-shot type) to create "infection spray" between two objects.
Object A "sprays" particles to object B and that object B becomes "infected".
The problem is that object B can start moving while particles are still flying towards it. And then this happens:
http://doptrix.com/C2/SprayDemo/
I want particles to change direction and continue following the moving object until they disappear.
Of course I tried changing particles X and Y coordinates and pinning them to the target object, and of course this didn't work.
Once the particles are fired, I can't control them.
One workaround would be to spawn a bunch of small sprites, but this will require a lot of work to make them move like particles and also will be bad for performance.
Is there any other solution or a trick that I can use?