Flipping Texture when using DrawTextureRectRegion

Godot Version

Godot Engine v4.2.stable.mono


Hi! I am using node2D.DrawTextureRectRegion to draw my sprites. Currently all my textures are drawn using the same Node2D which is why I cannot flip the sprite by flipping the node. DrawTextureRectRegion has support for “transpose” but this only swaps the x and Y axis. Is there way to flip textures when using DrawTextureRectRegion without flipping the node? Thanks in advance!

Solved. This can be achieved by changing the target rect to negative.

1 Like