AnimToSprite Manual -Afterimage Effect-

A2S documentation has been moved to the Wiki.

This page may not be up-to-date.

github.com

 

AnimToSprite Manual -Afterimage Effect-

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).

Paper2D will be supported in a later version.

 

How to use

1. Attach component

Add BP_SpriteAfterImageSpawner to an actor which has AnimSpriteRender component.

 

2. Activate

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.

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

 

2. Spawn Rate

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

 

3. Color

You need to create a pair of LinearColorCurve and CurveAtlas.

Of course, replacing AfterImageMaterial also works.

 

4. Using sprite colors

(The latest version of A2S contains this material as "M_SpriteAfterImage_Colored").

You need to your customized material (based on provided M_SpriteAfterImage).

Use the RGB channel of the "Texture" in some way.