Navigation

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

    To flip a Sprite when moving left or right?

    Beginners
    2
    2
    184
    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.
    • J
      Jauwai last edited by

      The title says pretty much it, what kind of coding would I need to add to the controls to be able to flip my character sprite when moving left?

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

        There is no flipSprite function but you can do it using a negative scale e.g.

        setSpriteScale(sprite, sprite.xscale * -1, sprite.yscale)
        

        Will flip it in the x axis

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