Is there an API in PhaserJS that can be used for particle tracking? Currently, I want to emit a particle towards object A (assuming object A's coordinates are (100,100)), but object A may move during the particle emission process. For example, object A moves 100px to the right (resulting in the final coordinates of A being (200,100)). As a result, the particle does not hit object A because it only moves to the predetermined coordinates (100,100). Is there any way to ensure tracking so that the particle will hit object A regardless of its movement?
Here is an example of my game.
I am developing a match-3 game, where the green spider egg is used to eliminate gems below the fragments. The green spider egg emits particles on the right side. These particles should hit the gems below the special gem on the left side (the gem that, when moved to the bottom, leads to victory). If the player does not move the gems below, the particles should accurately target the green arrow gem. However, if the player moves the gems below and the gem fragments slide down, the particles cannot track the gems below the fragments. Is there any way to track the position below the gem fragments? I have tried using "start" and "end" settings, but they do not achieve real-time tracking and updating.
Is there an API in PhaserJS that can be used for particle tracking? Currently, I want to emit a particle towards object A (assuming object A's coordinates are (100,100)), but object A may move during the particle emission process. For example, object A moves 100px to the right (resulting in the final coordinates of A being (200,100)). As a result, the particle does not hit object A because it only moves to the predetermined coordinates (100,100). Is there any way to ensure tracking so that the particle will hit object A regardless of its movement?
Here is an example of my game. I am developing a match-3 game, where the green spider egg is used to eliminate gems below the fragments. The green spider egg emits particles on the right side. These particles should hit the gems below the special gem on the left side (the gem that, when moved to the bottom, leads to victory). If the player does not move the gems below, the particles should accurately target the green arrow gem. However, if the player moves the gems below and the gem fragments slide down, the particles cannot track the gems below the fragments. Is there any way to track the position below the gem fragments? I have tried using "start" and "end" settings, but they do not achieve real-time tracking and updating.