Packagecom.whirled.contrib.platformer.display
Classpublic class ParallaxLayer
InheritanceParallaxLayer Inheritance Layer Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheriteddisplayCount : int
Layer
Protected Properties
 PropertyDefined by
  _scaleX : int
The ratio of movement from the main layer to this parallax layer.
ParallaxLayer
  _scaleY : int
ParallaxLayer
 Inherited_snapToPixel : Boolean = true
Set to true and all coordinates will be floored.
Layer
Public Methods
 MethodDefined by
  
ParallaxLayer(sX:int = 1, sY:int = 1)
ParallaxLayer
 Inherited
shutdown():void
Layer
  
update(nX:Number, nY:Number, scale:Number = 1):void
ParallaxLayer
Property detail
_scaleXproperty
protected var _scaleX:int

The ratio of movement from the main layer to this parallax layer.

_scaleYproperty 
protected var _scaleY:int
Constructor detail
ParallaxLayer()constructor
public function ParallaxLayer(sX:int = 1, sY:int = 1)Parameters
sX:int (default = 1)
 
sY:int (default = 1)
Method detail
update()method
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number
 
nY:Number
 
scale:Number (default = 1)