Make a light source object and a black square object.
Set the black square object's height and opacity depending on the distance from the light source.
Pin the black square object from a point at the bottom of the black square object to the shadow casting object and set its angle to the opposite direction from the light source using Angle().