Instance Functions
addEventListener(type:Int, func:Listener, options?:EventListenerOptions):Void
addForcedTarget(entity:Entity):Void
addTarget(entity:Entity):Void
addTimedTarget(entity:Entity, length:Int):Void
addTimedTargetPoint(point:Point, length:Int):Void
deleteForcedTarget(entity:Entity):Void
deleteTarget(entity:Entity):Void
deleteTimedTarget(entity:Entity):Void
deleteTimedTargetPoint(point:Point):Void
getBackgroundContainer():Container
getBackgroundContainers():Array<Container>
getForegroundContainer():Container
getMode():Int
getParallaxSprites():Array<Sprite>
getViewportHeight():Float
getViewportWidth():Float
getX():Float
getY():Float
getZoomScaleX():Float
getZoomScaleY():Float
hasEventListener(type:Int, func?:Listener):Bool
horizontalShake(intensity:Float, duration?:Int, frequency?:Float, waveType?:Int, decayType?:Int, customWaveSamples?:Array<Float>, customDecaySamples?:Array<Float>):Void
isDisposed():Bool
removeEventListener(type:Int, func:Listener):Void
setBackgroundOffset(index:Int, x:Float, y:Float):Void
description
Adjust a background container's view body offset. Useful for creating automatic scroll. Parameters:
- Index of the background to offset
- X offset
- Y offset
setLockedPosition(x:Float, y:Float):Void
description
Set the camera to a locked position. This is only used when the camera is in locked mode. Parameters:
- The x coordinate of the locked position
- The y coordinate of the locked position
setLockedZoom(zoomX:Float, zoomY:Float):Void
description
Set the camera to a specific zoom amount. Forces the camera into zoom mode if not already in zoom or locked modes. 1x zoom is the default, and 0.5x zoom is zoomed out to show twice the area. Parameters:
- The x zoom factor to apply to the camera
- The y zoom factor to apply to the camera