Use flixel create to build a project from the FlxBitmapText template.
Set the tf2.angle value and see that the sprite rotates around its center by default (as expected).
Call tf2.origin.set(0, 0) to place the rotation origin at the top left of the sprite.
Set the tf2.angle value.
Observed behavior:
The sprite rotates around its center regardless of the origin value.
Expected behavior:
The sprite should rotate around the defined origin. For example, placing the rotation origin at the top left of the sprite should pivot around that corner.
Reproduction steps:
flixel create
to build a project from the FlxBitmapText template.tf2.angle
value and see that the sprite rotates around its center by default (as expected).tf2.origin.set(0, 0)
to place the rotation origin at the top left of the sprite.tf2.angle
value.Observed behavior: The sprite rotates around its center regardless of the
origin
value.Expected behavior: The sprite should rotate around the defined origin. For example, placing the rotation origin at the top left of the sprite should pivot around that corner.