Manual: AfterimageSettings (Afterimage) Node

Overview

image
The AfterimageSettings node is a node exclusive to ACTION GAME MAKER, designed to implement so-called afterimages.

Setup

  1. Add the AfterimageSettings node as a child node of the GameObject.
  2. Specify the node that will generate the afterimage in the AfterimageSettings node’s properties (Afterimage Target):
    • Sprite Animation: Specify a Sprite2D node or an AnimatedSprite2D node.
    • 2D Bone Animation: Specify a BoneAnimationRoot2D node.

Explanation of Each Property

Enable Afterimage: Toggles the afterimage on or off.
Amount: The maximum number of afterimages that can be displayed simultaneously. Afterimages exceeding this limit are removed from the oldest first, ignoring their remaining duration.
Interval: The generation interval for afterimages.
Duration: Specifies how many seconds the afterimage will remain active.
Set Color: When enabled, allows filtering by color and adjusting opacity.
Fade Out: When enabled, the afterimage gradually fades over time.
FadeOutDuration: Specifies the time at which the fade-out effect begins.

Usage Example

You can enable the afterimage at the start of a dodge action and disable it at the end, so that the afterimage only appears during the dodge.

Important Notes

  • Only one afterimage node can exist; therefore, you cannot generate afterimages from multiple images using a single game object.
  • Settings for color and fade-out use the same functionality as filters and may conflict. Additionally, this will not function correctly on images where the “Use Parent Material” option is not enabled.
1 Like