Layer - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a Layer resource, used to group graphical elements and sort their rendering depth.

Specification

Destruction
Elements
Layer.destroy()
None

Properties

Name
Type
Default
Modifiable
ID
{int:layer}
None
No
name
None
No
depth
{int}
None
No
location
Vector2(0, 0)
No
speed
Vector2(0, 0)
No
visible
true
No
instancesPaused
false
No
shader
undefined
No
function_drawBegin
undefined
No
function_drawEnd
undefined
No
instanceList
List()
No
spriteList
List()
No
backgroundList
List()
No
tilemapList
List()
No
particleSystemList
List()
No

Construction types

Name
Arguments
Argument note
New constructor
depth {int}
name? {string}
Wrapper
name {string}
Empty
Constructor copy
other {Layer}
name? {string}
Information about object instances will not be copied.
⚠️ **GitHub.com Fallback** ⚠️