shooting left or right issue :(

rlehmrlehm Member Posts: 320
edited November -1 in Working with GS (Mac)
My actor will shoot right when moving right, and left when moving left. It only fires on button press. I'm having an issue where the actor turns from left to right, and the bullets flying also change direction from left to right.. Any tips? Much appreciated.

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    In your bullets have a rule that states if self.attribute.whatever is 0 (default) AND actor is turned to the right (I assume you have an attribute controlling this), change attribute direction to 1.

    If self.attribute.whatever is 0 (default) AND actor is turned to left, change attribute direction to 2.

    If self.attribute.whatever=1, MOVE RIGHT BEHAVIOR
    If self.attribute.whatever=2, MOVE LEFT BEHAVIOR

    That should work. If not, or if you don't understand what I said, just ask.

    Asymptoteell
Sign In or Register to comment.