The white bar is at position 605, 195 with a width of 36f. The red box is at position 641, 195 with a width of 5f. The box is 36 pixels wide and the red box is 36 pixels from the origin of the white bar. The white bar does not reach the position of the red box when it should.
There is an issue when specifying width/height where the positioning of the sprite is offset from where it was.
The white bar is at position
605, 195
with a width of36f
. The red box is at position641, 195
with a width of5f
. The box is 36 pixels wide and the red box is 36 pixels from the origin of the white bar. The white bar does not reach the position of the red box when it should.There is an issue when specifying width/height where the positioning of the sprite is offset from where it was.