Change Player Direction

TopoftheTempleTopoftheTemple Member Posts: 6
edited August 2012 in Working with GS (Mac)
I was wondering how I would go about changing the direction the player character is facing. There would be a button on the HUD to change facing left and facing right.

Answers

  • master200012master200012 Member Posts: 372
    edited August 2012
    Not quite sure what you mean, but you can try checking the box under the actor's graphics that says "flip horizontally?"

    Naturally you might have to use it in a rule, where your HUD attributes might determine it, but this could get you started.

    You may also choose to change the actor's rotation to 180 through the change attribute behavior.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Hey,
    work with graphic flips.

    In the button for "left":
    When button left is pressed change "game.left" true
    otherwise to false

    In the character:
    When left is true
    change self.graphics flips horizontally to false/true

    That will work :)
    Alex

  • 24pfilms24pfilms Member Posts: 7
    Hello Alex, I was wondering of you could give me a hand with a similar problem.
Sign In or Register to comment.