I have a FlxText
object which has properties like:
var CharHP:FlxText = new FlxText(1000, 500);
CharHP.Text = "HP: " + "9999";
CharHP.width = 300; CharHP.height = 200;
CharHP.alignment = "center";
I'm trying to align CharHP
to center and I expect these coordinates:
1000+(300/2), 500+(200/2)
However, the text is at:
1000, 500