layer(name: string): LayerComp

Determines the layer for objects. Object will be drawn on top if the layer index is higher.
kaplay logo