Make actor face direction

tim13211tim13211 Member Posts: 87
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

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    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
  • ozboybrianozboybrian PRO Posts: 2,102
    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!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    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.