To be clear from the start, I´m not talking neither about drop shadow shaders, shadow caster behaviour or anything like that.
It´s a super stupid thing that I have tried several times in the past, but because I´m still not good at programming, I wasn´t able to achieve this in a simple way (I once ended up making every moving object look like different shadow sprites with the actual object/s attached to it with the right altitude, shameful...). In the end the result was the one I wanted, but it wasn´t reliable in any way.
So the purpose is simple:
·A family of objects
-When one of these is created a shadow sprite attaches to it.
-Any object is able to move freely on the 2D plane and this shadow sprite is the reference of where the ground is.
-Thanks to these shadows, objects in the family can simulate altitude by doing things like hopping or jumping.
-Objects in the family can ride each other (see reference)
Sidenote: I´ve had many issues with assigning a different object to a family (when one outside of family object does X, all members of a family do X, which is wrong) even though I´ve read about families, any info would be extra awesome!.
Reference: (credit goes to rubna)
https://pbs.twimg.com/tweet_video/CKr1NB4WEAAL47t.mp4
Any help would be really useful! It might come in handy for anyone else looking for a similar effect.