Hello! I have a strange problem: the shadow is drawn on top of the sprite, not underneath, as in the demo.
CREATE:
// Shadow
_shadow = new Crystal_ShadowSprite(id, sprite_index, image_index, CRYSTAL_SHADOW.DYNAMIC);
_shadow.shadowLength = 0.1; // Numbers close to 0 will prevent the shadow from moving too much with the light. 1 = same distance as the light.
_shadow.fixedBase = false; // The shadow WILL offset
_shadow.followLightAngle = false; // The shadow will NOT rotate based on the light position
_shadow.Apply();
STEP:
//Shadow x/y/depth
_shadow.x = x;
_shadow.y = y;
_shadow.depth = depth + 1;
UPDATE: Sorry! My fault: gpu_set_ztestenable(true);