Afterimage Effect - nkdtr/A2SSupport GitHub Wiki

image
A2S Version 1.9 provides a component to add afterimage effects.
It is a bit heavy because it spawns Actors, but it is a useful effect.

Caution:
This is only for AnimSpriteRender component (provided by A2S).

How to use

1. Attach component

image
Add BP_SpriteAfterImageSpawner to an actor which has AnimSpriteRender component.

2. Activate

image
This component is not activated by default.
Use Activate function or check "Auto Activate" in the Details.

Customization

You can control the appearance of afterimages by creating materials or changing the properties.
image

Properties

-CaptureMaterial:

The material used to create textures for afterimages.
This is less likely to be modified.

-SpawnRate

Number of spawned afterimage sprite per second.

-AfterImageMaterial

The material that determines the appearance of the afterimage sprites.

-LifeSpan

-ColorOverTime

Used in the standard (provided) AfterImageMaterial to define the colors and opacities of afterimage sprites over time.

-AutoActivate

If checked, the afterimage effect will be active when the game starts.

Examples

1. Default

image

2. Spawn Rate

image
Spawn rate can be modified in the Details of the component.

3. Color

image
You need to create a pair of LinearColorCurve and CurveAtlas.
image
Of course, replacing AfterImageMaterial also works.

4. Using sprite colors

(The latest version of A2S contains this material as "M_SpriteAfterImage_Colored").
image
You need to your customized material (based on provided M_SpriteAfterImage).
image
Use the RGB channel of the "Texture" in some way.