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

getPixelAt and getPixelAtScreen #2640

Merged
merged 13 commits into from
Oct 1, 2022
Merged

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Sep 24, 2022

Adds the following public methods to FlxSprite, all useful for converting world or screen coordinates to the sprites graphical coordinates, accounting for scale, angle, offset, origin, and scrollFactor

  • getPixelAt
  • getPixelAtScreen
  • transformWorldToPixels
  • transformWorldToPixelsSimple
  • transformScreenToPixels

also Improved docs of FlxSprite methods: getScreenPosition and getPosition

@Geokureli Geokureli merged commit da93f70 into HaxeFlixel:dev Oct 1, 2022
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

Successfully merging this pull request may close these issues.

1 participant