| Package | com.whirled.contrib.platformer.display |
| Class | public class ParallaxLayer |
| Inheritance | ParallaxLayer Layer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| _scaleX : int The ratio of movement from the main layer to this parallax layer.
| ParallaxLayer | ||
| _scaleY : int | ParallaxLayer | ||
![]() | _snapToPixel : Boolean = true Set to true and all coordinates will be floored.
| Layer | |
| Method | Defined by | ||
|---|---|---|---|
|
ParallaxLayer(sX:int = 1, sY:int = 1)
| ParallaxLayer | ||
![]() |
shutdown():void
| Layer | |
|
update(nX:Number, nY:Number, scale:Number = 1):void
| ParallaxLayer | ||
| _scaleX | property |
protected var _scaleX:intThe ratio of movement from the main layer to this parallax layer.
| _scaleY | property |
protected var _scaleY:int
| ParallaxLayer | () | constructor |
public function ParallaxLayer(sX:int = 1, sY:int = 1)Parameters
sX:int (default = 1) |
|
sY:int (default = 1) |
| update | () | method |
public override function update(nX:Number, nY:Number, scale:Number = 1):voidParameters
nX:Number |
|
nY:Number |
|
scale:Number (default = 1) |