Closed PurSnake closed 3 weeks ago
can you provide an small example of when the old code fails and the new code behaves as expected?
The fastest and most obvious example that I have without a debug interface (Yes, fnf) Before: https://github.com/HaxeFlixel/flixel/assets/56314743/64beda2d-5255-4773-be88-048eced8b44f
After: https://github.com/HaxeFlixel/flixel/assets/56314743/ca58045d-2bbd-4fa7-9399-0c8622ac43f8
Well, I think it’s already clear how it breaks down with a negative scale _scaledOrigin gets incorrect positions
I just need a small example code that I can take and run locally. The videos you shared look identical to me without context
boyfriend.scale.x *= -1; or
I understand now, in the future just use words to describe the unexpected behavior and provide simple code that reproduces it and things will move a lot faster
Also FYI, you should be using sprite.flipX and flipY instead of scaling it to -1. even with this fix, you still get issues where the hitbox isn't right
Makes _scaledOrigin values always positive