Skip to content
Discussion options

You must be logged in to vote

It's not meant to retrieve specific FlxSprites, but it can be used to retrieve graphic made using this key. For instance:

var graphic:Null<FlxGraphic> = FlxG.bitmap.get(someKey);
if (graphic == null)
{
     graphic = FlxG.bitmap.create(100, 100, 0x0, false, someKey);
     // draw the graphic
}

final sprite = new FlxSprite(0, 0, graphic);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KELOTOMU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants