flixel
flixel copied to clipboard
Functions for getting bounds with `clipRect` in FlxSprite
Basically functions like getScreenPosition
and getScreenBounds
, but taking the sprite's clipRect
into account.
This would be useful for example, if a UI button is in a scrollable area that modifies its clipRect
, and you want to check for mouse overlap taking the clipped graphic into account. It could also be used for the isOnScreen
check to prevent unnecessary drawing, though this probably counts as a breaking change.
I believe we should modify getScreenBounds to honor clipRect, rather than making a new function