toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Change Player Direction
TopoftheTemple
Member
Posts:
6
August 2012
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
master200012
Member
Posts:
372
August 2012
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.
GuaveMedia
Member, PRO
Posts:
1,262
August 2012
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
Warning
There was an error rendering this rich post.
24pfilms
Member
Posts:
7
September 2012
Hello Alex, I was wondering of you could give me a hand with a similar problem.
Sign In
or
Register
to comment.
Answers
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.
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