Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Is there a way to flip sprite ?

    General Discussion
    4
    5
    355
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      EvanTropFun last edited by

      I need flip a sprite to the left but i don't found how
      If somebody know ??????

      1 Reply Last reply Reply Quote 0
      • R
        Richard F last edited by

        Set the x scale to -1.

        1 Reply Last reply Reply Quote 2
        • mpfdev
          mpfdev last edited by

          Try this:

          spritename.xscale = -1
          spritename.yscale = -1
          
          1 Reply Last reply Reply Quote 2
          • E
            EvanTropFun last edited by

            Yes it work ! Thanks you @Richard @mpfdev

            1 Reply Last reply Reply Quote 0
            • Martin
              Martin Fuze Team last edited by Martin

              0r in a single command if you prefer:

              setSpriteScale(sprite, scale) or setSpriteScale(sprite, {x, y})

              https://fuzearena.com/help/view/setSpriteScale

              1 Reply Last reply Reply Quote 1
              • First post
                Last post