Reverse particle system

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Posts: 14
Joined: Thu Jun 14, 2018 12:03 pm

Reverse particle system

Post by andras » Thu Jun 14, 2018 1:29 pm

Hi there,

Is it possible to play a particle system in reverse, so that instead of emitting particles from a point and having them accelerated all over the place, the particles are attracted to a single target? Kind of like a particle system played backwards. I tried pSystem:update(-dt) without luck.

I'm working on the following teleport effect:

I can calculate the location of the teleport target and tweak the particle system's speed and lifetime to have the particles arrive at the target location when everything is standing still, but when the target is moving, the particles arrive at the wrong location. It would be nice to be able to solve it with two particle systems: a regular emitter from the source, and a particle attractor at the target?

Any ideas?


Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests