W
Warchamp7
Guest
I'm running into a weird off by one issue when referencing bbox_left/bbox_right relative to the objects x position when xscale is changed
xscale = 1
bbox_left: 192
x: 224
bbox_right: 256
Left and right of the bounding box are both 32 as expected
xscale = -1
bbox_left: 191
x: 224
bbox_right: 255
Left of bounding box is now 33 away from x, and right is 31 away
I'm sure I'm doing something very silly to even run into this problem, but it still shouldn't happen, no?
xscale = 1
bbox_left: 192
x: 224
bbox_right: 256
Left and right of the bounding box are both 32 as expected
xscale = -1
bbox_left: 191
x: 224
bbox_right: 255
Left of bounding box is now 33 away from x, and right is 31 away
I'm sure I'm doing something very silly to even run into this problem, but it still shouldn't happen, no?