Use this script to create an after image effect on an animated sprite in Unity.
There are two versions:
- AfterImage.cs uses a coroutine to fade the sprite.
- AfterImageLeanTween.cs replaces the coroutine with a tween using the LeanTween package.
Additionally, I'm using a separate script for sprite rotation so you can replace the one I use on line 63 if you are doing 2.5D.
