Overview

The AfterimageSettings node is an ACTION GAME MAKER-exclusive node designed to implement afterimage effects.
Setup
- Add an AfterimageSettings node as a child node of the target GameObject.
- In the AfterimageSettings node properties, specify the Afterimage Target — the node that will display the afterimage:
- Sprite Animation: Specify a Sprite2D or AnimatedSprite2D node.
- 2D Bone Animation: Specify a BoneAnimationRoot2D node.
Property Descriptions
| Property | Description |
|---|---|
Enable Afterimage (enable afterimage) |
Toggles whether the afterimage effect is active. |
Amount (amount) |
Sets the maximum number of afterimages that can be displayed at once. Older ones will be removed when the limit is exceeded. |
Interval (interval) |
Controls how frequently new afterimages are generated. |
Duration (duration) |
Determines how long (in seconds) each afterimage remains visible. |
Color (color) |
When enabled, applies a color filter to the afterimage. Opacity can also be adjusted. |
Fade Out (FadeOut) |
When enabled, the afterimage gradually becomes transparent over time. |
FadeOut Duration (FadeOutDuration) |
Specifies when the fade-out effect begins. |
Practical Example
Enable the afterimage effect at the start of a dodge action,
and disable it when the action ends — this will make the afterimage appear only while dodging.
Notes
- Only one AfterimageSettings node can exist per GameObject.
Therefore, it’s not possible to generate afterimages from multiple images on the same object. - The color and fade-out settings use the same system as the filter effects, and may conflict with them.
Also, images that do not have “Use Parent Material” enabled may not display the effect correctly.
