Within love.update I have this movement code.
I have notated where I wish to put new code.
(the start animation is 'standing'.)
---
movement for player
if love.keyboard.isDown('a') then
dx = -vx*delta
---
Here I want to: Change animation to 'Run' and flip the skeleton to face right?
elseif love.keyboard.isDown('d') then
dx = vx*delta
---
Here I want to: Change animation to 'Run' and flip the skeleton to face left?
else
dx = 0
---
Here I want to: Change the animation back to the standing animation.
end
Can someone help please?