[Custom Action] Particles emitted can be displayed until the end

■ Contents
CA_SpawnDetachedParticleAction.gd (5.5 KB)

■ Behavior
Even if the object that spawned the particles disappears,
the emitted particles will not vanish with it and will continue to perform the effect for the configured duration.

  • “Debris” emitted by disappearing blocks
  • “Shockwave” from a hit projectile
    In such cases, the particles remain even after the original object is gone.

■ Installation
Download the data above and drop it into the ≪FileSystem≫ of your own project.
※ This is a feature of AGMaker version 1.3.0 and later.
※ Please back up your project before proceeding.

■ Configuration
Since the “Add Execute Action” state now includes additional tags,
please configure your existing particle .tscn file.

※ Caution
If you need to delete this *.gd file, please do so after removing it from any states where it was used, just in case.
Alternatively, create a backup at that point.
As of June 2026, there have been cases where projects failed to start after deletion, so please proceed with caution.

4 Likes

CA_SpawnDetachedParticleAction-2.gd (6.4 KB)

I used AI to refine it and added a feature that allows particles to spawn at link points :heart:

2 Likes

1787299481281

  1. I just noticed that there are node leaks when using the plugin.
  2. Then I switched back to the original plugin and found that nodes were also not being automatically cleared.
    Test: The number of nodes in the image increased from 188 to 191, and then from 191 to 194.
    I discovered many nodes in the remote scene tree that were not being automatically cleared.

Processing:
I then had the AI reprocess it, and now it has been changed to purely use time-based nodes for timing, after which they are automatically cleared (including both parent and child nodes).

CA_SpawnDetachedParticleAction-3.gd (5.6 KB)

1 Like