http://prntscr.com/fwvb7n - I have added a crouch to my character which when I push left ctrl or c key it slows my character down.
The problem I’m having is that my character is still standing.
How do I add a crouch animation so that when I hit left ctrl or c key he crouches.
I’ve looked on youtube etc but can’t find anything
Thank you in advance.
Sincerely, A noob
You could put an instance variable on the sprite playing the animation called CrouchDetection
And set it so every tick you are crouching set CrouchDetection to 1
Then add and Else event and the action to set it to 0 so when your not crouching it will be 0
And finally add a condition to your event that allows you to attack, and make it so the normal attack animation only plays when CrouchDetection equals 0, or make it so that the crouch attack animation only plays when CrouchDetection equals 1