Dummy FlxSprite that allows you to cache FlxGraphics, and immediatly send them to GPU memory.

Constructor

new()

Variables

@:value([])cachedGraphics:Array<FlxGraphic> = []

Array containing all of the graphics cached by this sprite.

@:value([])nonRenderedCachedGraphics:Array<FlxGraphic> = []

Array containing all of the non rendered (not sent to GPU) cached graphics.

Methods

cache(path:String):Void

Caches a graphic at specified path.

Parameters:

path

Path to the graphic.