Closed
Description
currently, using FlxRect
for fields such as FlxSprite.clipRect
requires reassigning in order for changes to take effect. i've seen multiple people question this, and i've wondered if there's a simpler way around it.
Some ideas:
- Create a class similar to
FlxCallbackPoint
(potentiallyFlxCallbackRect
) that acts similarly to the callback point class. - Implement this functionality in
FlxRect
itself, possibly acallback
function that gets called when setting x, y, width, height.
If we went with the latter, we could potentially remove FlxCallbackPoint
and add similar functionality into the standard FlxPoint
class.
Metadata
Metadata
Assignees
Labels
No labels