- Home /
Creating a Shadow tail for a 2D Character when walking
Hello,
i've been trying to figure out how to create a shadows tail for the character when it's moving. this picture might make it easier to understand the idea!!
if you can guide me to a tutorial or some useful link. it would be awesome
Thanks.
Answer by robertbu · Jun 30, 2013 at 10:02 PM
This can be done with the Trail Renderer. Create a texture that graduates from solid gray to clear, put it in a shader that supports unlit textures with transparency and add it as the material to the trail renderer.
Import settings for the texture should preserve the alpha channel.
Shader for the material needs to support the transparency
Set the time in the Trail Renderer to around 0.25
Attach the trail renderer to an empty game object behind the one you want to show.
Here is a texture to start.
Your answer
![](https://koobas.hobune.stream/wayback/20220613105222im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Space Shooter Instantiating bullet question 1 Answer
2D Position of a game object. 1 Answer
Hiding a sprite partially (shader? masking?) 0 Answers
Shadows on 2d Sprites? 0 Answers
2D Animation does not start 1 Answer