1. #1
    Deleted

    Flip Horizontally

    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.

  2. #2
    I looked for someway to do that awhile back, but never found anything. I don't think you can.

  3. #3
    Deleted
    Quote Originally Posted by Woogs View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •