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)
Any help would be really useful! It might come in handy for anyone else looking for a similar effect.