D
Diddy Kong
Guest
Images of my code https://imgur.com/a/QEdKpfl
I need help with the sprites turning animation
I made it so if the player moved left or right a turning animation would play before they can move with their walking animation
Not pressing any keys would make the sprite have a idle animation
Holding the left and right key makes the player stop moving
The problem is that if I hold the left and right key the sprite animation keeps playing the turning animation
Trying to change the sprite to the idle animation if I hold the left and right key doesn't work either
Example would be while holding down the left key and releasing the right key would make the idle animation move left
I want to make it so if I hold down the both the keys the idle animation would play but if I released the opposite while holding the other the turn animation would play and then the player walks
I need help with the sprites turning animation
I made it so if the player moved left or right a turning animation would play before they can move with their walking animation
Not pressing any keys would make the sprite have a idle animation
Holding the left and right key makes the player stop moving
The problem is that if I hold the left and right key the sprite animation keeps playing the turning animation
Trying to change the sprite to the idle animation if I hold the left and right key doesn't work either
Example would be while holding down the left key and releasing the right key would make the idle animation move left
I want to make it so if I hold down the both the keys the idle animation would play but if I released the opposite while holding the other the turn animation would play and then the player walks