Package | stencyl.api.engine.bg |
Class | public class ScrollingBackground |
Inheritance | ScrollingBackground ImageBackground Resource Object |
Property | Defined By | ||
---|---|---|---|
currFrame : int | ImageBackground | ||
currTime : Number | ImageBackground | ||
durations : Array | ImageBackground | ||
frames : Array | ImageBackground | ||
ID : uint | Resource | ||
img : BitmapData | ImageBackground | ||
name : String | Resource | ||
repeats : Boolean | ImageBackground | ||
xVelocity : Number | ScrollingBackground | ||
yVelocity : Number | ScrollingBackground |
Method | Defined By | ||
---|---|---|---|
ScrollingBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean, xVelocity:Number = 0, yVelocity:Number = 0) | ScrollingBackground | ||
draw(cameraX:Number, cameraY:Number, screenWidth:Number, screenHeight:Number):void | ImageBackground | ||
toString():String | Resource | ||
update():void | ImageBackground |
xVelocity | property |
public var xVelocity:Number
yVelocity | property |
public var yVelocity:Number
ScrollingBackground | () | Constructor |
public function ScrollingBackground(ID:uint, name:String, frameData:Array, durations:Array, repeats:Boolean, xVelocity:Number = 0, yVelocity:Number = 0)
ID:uint | |
name:String | |
frameData:Array | |
durations:Array | |
repeats:Boolean | |
xVelocity:Number (default = 0 )
| |
yVelocity:Number (default = 0 )
|