blend(blend: BlendMode): BlendComp

Sets the blend mode of a Game Object.

// light
add([
    sprite("light"),
    blend(BlendMode.Add),
]);

returnsThe blend comp.

sincev4000.0

kaplay logo

Misc

Layer