Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxBitmapText does not respect the "origin" value when rotating #3144

Open
EliteMasterEric opened this issue May 18, 2024 · 0 comments
Open

Comments

@EliteMasterEric
Copy link
Contributor

  • Haxe version: 4.3.4
  • Flixel version: 5.8.0
  • OpenFL version: 9.3.3
  • Lime version: 8.1.2
  • Affected targets: All

Reproduction steps:

  1. Use flixel create to build a project from the FlxBitmapText template.
  2. Set the tf2.angle value and see that the sprite rotates around its center by default (as expected).
  3. Call tf2.origin.set(0, 0) to place the rotation origin at the top left of the sprite.
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant