Mirroring Sprites (Using Quads)
Posted: Sat Feb 23, 2013 8:57 pm
Hello,
I have a really quick question in regards to Quads. Is it possible to mirror an image, that the quad is referencing (a sprite sheet, for instance), on the fly?
Say, for instance, when you are pressing "right" it uses the reference image, but when you press "left" it mirrors the reference image.
I've looked around on the boards, but didn't come across anything that seemed 100% appropriate. I apologize in advance if this is a common topic, but it didn't appear to be mentioned.
I suspect that when drawing the image you can use the additional variables(rotation, scale, etc) to alter the orientation, but I'm not at a computer that I can test this on and it's been killing me to try and figure out.
Thanks!
I have a really quick question in regards to Quads. Is it possible to mirror an image, that the quad is referencing (a sprite sheet, for instance), on the fly?
Say, for instance, when you are pressing "right" it uses the reference image, but when you press "left" it mirrors the reference image.
I've looked around on the boards, but didn't come across anything that seemed 100% appropriate. I apologize in advance if this is a common topic, but it didn't appear to be mentioned.
I suspect that when drawing the image you can use the additional variables(rotation, scale, etc) to alter the orientation, but I'm not at a computer that I can test this on and it's been killing me to try and figure out.
Thanks!