Abstract
The data used to initialize the layer
The container in which the layer is used
Abstract
applyReturn an array containing the coordinates of the point passed as parameter in layer local coordinates (as opposed to the parent coordinates).
All transformations (scale, rotation) are supported.
The X position of the point, in parent coordinates.
The Y position of the point, in parent coordinates.
Array that will be updated with the result
Abstract
applyReturn an array containing the coordinates of the point passed as parameter in parent coordinate coordinates (as opposed to the layer local coordinates).
All transformations (scale, rotation) are supported.
The X position of the point, in layer coordinates.
The Y position of the point, in layer coordinates.
Array that will be updated with the result (x and y position of the point in parent coordinates).
Abstract
convertConvert a point from the canvas coordinates (for example, the mouse position) to the container coordinates.
The x position, in canvas coordinates.
The y position, in canvas coordinates.
The camera number. Currently ignored.
The point instance that is used to return the result.
Abstract
convertConvert a point from the container coordinates (for example, an object position) to the canvas coordinates.
The x position, in container coordinates.
The y position, in container coordinates.
The camera number. Currently ignored.
The point instance that is used to return the result.
Abstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getAbstract
getReturn the time elapsed since the last frame, in milliseconds, for objects on the layer.
Optional
instanceContainer: RuntimeInstanceContainerThe instance container the layer belongs to (deprecated - can be omitted).
Returns the scene the layer belongs to directly or indirectly
the scene the layer belongs to directly or indirectly
Abstract
onAbstract
setAbstract
setAbstract
setAbstract
setAbstract
setCalled at each frame, after events are run and before rendering.
Optional
instanceContainer: RuntimeInstanceContainer
Represents a layer of a "container", used to display objects. The container can be a scene (see gdjs.Layer) or a custom object (see gdjs.RuntimeCustomObjectLayer).