Attack in Direction

Whats goin on guys! Im looking to have my sprite attack in the direction hes facing. If hes facing left and i hit space he kicks left, but when hes facing right and i want him to kick right, he still kicks left. Anyone got an answer for this? Thank you so much :)

Comments

  • TheActualGamer TheActualGamer Member Posts: 19

    Bump

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    One way to do that is to animate the actor's image for the kick and change self.Graphics.Flip Horizontally when the actor is moving left or right.

  • TheActualGamer TheActualGamer Member Posts: 19

    @tatiang Once i do the self.graphics.flip horizontally, what do i set it to? True didnt work lol :)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Either true or false. It's case-sensitive, unfortunately.

Sign In or Register to comment.