SetAlpha(GetAlpha#(True)) SetBlend(GetBlend()) SetColor(GetR#(True), GetG#(True), GetB#(True)) SetRotation(GetRotation#(True)) DebugLog GetScaleX#(True) SetScale(GetScaleX#(True), GetScaleY#(True)) 'SetViewport(GetViewportX#(True), GetViewportY#(True), GetViewportWidth#(True), GetViewportHeight#(True)) ' Draw sprite. DrawImage(Image, GetX#(True), GetY#(True), Frame#)
My method to draw my sprites doesn't seem to be setting the scale of the images. As you can see there, I have a call to debuglog that prints the scale GetScaleX#() returns. I have two sprites, the first one is not scaled, the second shoulf be scaled by 50%. My debuglog reports 1.0 and 0.5 repeating as the sprites are drawn. So I know that GetScaleX#() is returning the correct value, but for some reason, DrawImage there isn't drawing it to scale, it's exactly the same size as if I don't scale it at all.
Anyone have any idea what's going on? I thought maybe setting the viewport was resetting the scale but this appears not to be the case.