Layer (class)

From Moondust Wiki
Revision as of 15:22, 30 October 2014 by Kevsoft (talk | contribs) (Created page with "Category:LunaLua API Category:LunaLua classes This class provides fields/functions for managing Layers in the current level. {{Class table‎|Layer class||2= {{Class...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.