Open DetectiveBaldi opened 1 month ago
As I said in chat, I'm not a fan of FlxCallbackPoints for memory reasons and I'm even trying to do away with that in the long run. but I think there may be another way to detect changes to the clipRect field, i'll do some test when I have time
currently, using
FlxRect
for fields such asFlxSprite.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:
FlxCallbackPoint
(potentiallyFlxCallbackRect
) that acts similarly to the callback point class.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 standardFlxPoint
class.