Does anyone know if there is a lua command to flip a texture horizontally?
Solved:
Switched
FIM_AnimatedPony:SetTexCoord(x1, x2, y1, y2);
to
FIM_AnimatedPony:SetTexCoord(x2, x1, y1, y2);
Does anyone know if there is a lua command to flip a texture horizontally?
Solved:
Switched
FIM_AnimatedPony:SetTexCoord(x1, x2, y1, y2);
to
FIM_AnimatedPony:SetTexCoord(x2, x1, y1, y2);
Last edited by mmoc3b93880aab; 2011-08-23 at 02:07 PM.
I looked for someway to do that awhile back, but never found anything. I don't think you can.
Hi Woogs,
I found a way. You use SetTexCoord:
For me it was switching:
FIM_AnimatedPony:SetTexCoord(x1, x2, y1, y2);
to
FIM_AnimatedPony:SetTexCoord(x2, x1, y1, y2);
but if you wanted to flip the whole image you would use:
FIM_AnimatedPony:SetTexCoord(0, 1, 0, 1);--normal image
to
FIM_AnimatedPony:SetTexCoord(1, 0, 0, 1); --flipped image