Layer (class)

From Moondust Wiki
Revision as of 10:18, 6 April 2015 by Kevsoft (talk | contribs)
Jump to navigation Jump to search

This class provides fields/functions for managing Layers in the current level.


Layer class
Type Function/Field Return values/Value type Description
Constructor myLayer = Layer(int internalIndex) Layer Construct a new Layer-Object. Only use this constructor with caution. Use findlayer() instead!
function Layer:stop() nil Stops layer's movements.
Field (ro) Layer.layerName VBStr The layer name.
Field Layer.speedX double The x-speed of the layer.
Field Layer.speedY double The y-speed of the layer.