By kodywilson
Date 2021-05-03 17:47
Edited 2021-05-05 22:04
I'm wondering if it is possible to mirror a sprite in Gosu? One example would be having a player that runs right and left, can you create a right running sprite and then just flip or mirror it for running left?
If not, I will just make left versions, but I thought I would ask before I go down that path.
Thanks and have a good one!
EDIT to add: I cannot seem to get an image to scale when using .draw_rot.
Doing this:
def draw
@image.draw(@x, @y, @z, scale_x = @scale, scale_y = @scale)
end
works great, I can scale the images no problem.
But this:
def draw
@image.draw_rot(@x, @y, @angle, @z, scale_x = @scale, scale_y = @scale)
end
does not scale the image at all. Otherwise it behaves as expected (x and y are the center of the image).
Loading...