How do I make a simple drop shadow in unity 2d? I don’t need anything complicated, I just have a sprite as a shadow and I need it to stay on the ground when the character jumps. any suggestions?
Make game object with a semi-transparent sprite and attach a script that follows the x position.
There’s a few things to think from now on: are there different height platforms? if not, that’s super easy… you’re almost finished with following the X position plus remembering the Y position of the object you jumped from…
Otherwise, if you jump and move in X and land on a taller surface the shadow must “move up” (same principle for something that’s bellow). In this case I guess you could raycast from the feet down and get the Y position of whatever “land” piece you hit.
I think Something like that could work