A single frame buffer. Used by FrameBufferManager.
Constructor
Variables
Methods
addSpriteCopy(spriteCopy:SpriteCopy):Void
Adds a sprite copy to the frame buffer.
Parameters:
spriteCopy | the sprite copy |
|---|
create(width:Int, height:Int, bgColor:FlxColor):Void
Creates a frame buffer with the given size.
Parameters:
width | the width |
|---|---|
height | the height |
bgColor | the background color |
follow(target:FlxCamera):Void
Makes the internal camera follows the target camera.
Parameters:
target | the target camera |
|---|
moveSprite(sprite:FlxSprite):Void
Adds the sprite to the frame buffer. The sprite will only be seen from the frame buffer.
Parameters:
sprite | the sprite |
|---|