Search found 2 matches
- Thu Oct 01, 2020 12:08 am
- Forum: Support and Development
- Topic: [Solved]Making a character switch images when pressing a button to move
- Replies: 3
- Views: 3082
Re: Making a character switch images when pressing a button to move
I have just realized how to do it. I was thinking that I had to change images when I pressed a button but I found a function that just flips a character over the y axis: if self.direction == 'right' then scaleX = 1 else scaleX = -1 end love.graphics.draw(player_right, math.floor(player_rightX), math...
- Wed Sep 30, 2020 8:34 pm
- Forum: Support and Development
- Topic: [Solved]Making a character switch images when pressing a button to move
- Replies: 3
- Views: 3082
[Solved]Making a character switch images when pressing a button to move
In the game I am trying to make, I have two character images one of the character looking left and one looking right. I already have the image that looks right walking around but I want to be able to switch the image when I press 'a' to go left. If you need me to attach the game files just tell me. ...