character face to the left

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
I am making a 2D side scrolling game the game progresses to the right. I want my character to be able to turn to the left and still be able to shoot his gun and make the bullets go which ever way he is facing.

currently I have just the basic spawn bullets in front of actor.
is there a way to specify which is the front of my main character and make the bullets spawn from the front of him?

I was thinking about making an invisible actor and constraining it to my main character but i dont think this will work.

any help would be awesome! Thanks

Comments

  • Fafnir312Fafnir312 Member Posts: 161
    Set up a boolean attribute called "right". Make a rule that checks if it's true and if so then do the shooting right. Under "otherwise" put the shooting left behaviors.

    EDIT: Be sure to look in the wiki and through the tutorials. There are a lot of answers there.
  • Player_EPlayer_E Member, PRO Posts: 604
    Thanks for the help man. I didnt do it exactly how you explained, but I got it figured out with your help.
Sign In or Register to comment.