toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Make actor face direction
tim13211
Member
Posts:
87
March 2011
edited November -1
in
Working with GS (Mac)
I'm working on a game that has a bee flying around randomly. I want the bee to face the direction it is traveling. Example: Bee flying right, head facing right. What should I do?
Comments
JohnPapiomitis
Member
Posts:
6,256
March 2011
Youll have to have 2 images for the bee facing left and the be facing right
Have a rule in the bee when attribute self motion linear x>0 change image to the facing right image
then have another rule in the bee when attribute self motion linear x <0 change image to the left facing image
cheers
ozboybrian
PRO
Posts:
2,102
March 2011
Thanks John, I needed this one answered myself.
-----------------------------------------------------
Join the GameSalad Community and have your game noticed for free.
http://www.facebook.com/pages/List-your-TOP-iPhone-game/170419832993723
List your Top iPhone Game on FaceBook!
JohnPapiomitis
Member
Posts:
6,256
March 2011
anytime mate, i put them backwards at first though lol i fixed it though so check the post again
Sign In
or
Register
to comment.
Comments
Have a rule in the bee when attribute self motion linear x>0 change image to the facing right image
then have another rule in the bee when attribute self motion linear x <0 change image to the left facing image
cheers
-----------------------------------------------------
Join the GameSalad Community and have your game noticed for free.
http://www.facebook.com/pages/List-your-TOP-iPhone-game/170419832993723
List your Top iPhone Game on FaceBook!