Shadows from sprites
Shadowsprites are an alternative method to cast shadows.
important
shadowsprites are slower than mesh shadows, and don't support depth.
Creating a Shadow sprite
You can create a shadowsprite with 2 functions.
// manually
ss_id = glr_shadowsprite_create(sprite, subimg, px, py, xscale, yscale, rotation, is_static)
// or from the object instance
// in this case it will use the object informations like x, y, scale, etc.
var is_static = false;
ss_id = glr_shadowsprite_create_from_instance(is_static);
You can move/rotate/scale a shadowsprite with
glr_shadowsprite_set_transform(ss_id, x, y, image_xscale, image_yscale, image_angle );
important
Static shadowsprites should not be moved and are way faster since they don't require a refresh for static lights.