First scripting version for just one bike, ramp interaction is not handled yet:
function UpdateS()
shadow = Frame:GetShapeWithTag("shadow")
if shadow then
shape.Offset.z = shape.Offset.z - (shape.BottomLeft.y - shadow.BottomLeft.y);
shape.Offset.y = shape.Offset.y + shadow.BottomLeft.y - shape.BottomLeft.y;
end
end
The result is promising:
Quick setup tip for top down game:
Layer1: depth = 0 Align Bottom -> for on ground objects
Layer2: depth = 0 Align Top -> for ground objects
For x axis rotated objects, set pivot y = 0
With that setup, we will save many pattern adjustment steps.
PS: Damn it, the ramp f*cks up everything. The lane and shadow path become diagonal on ramp .