OK, so what I'm trying to achieve atm is making the crouch work.. at the moment crouch only plays the first frame because is_on_floor returns true and tells the code to play the idle animation instead... my fix for this would be to implement a timer for the crouch, (something along the lines of: as long as crouch_timer is active, do nothing).. but the problem is I'm having a hard time figuring out where to insert the line of code that will do this.. also I would like the player to be able to attack while crouched, not sure if this will become a problem with this approach
I'm also trying to make my character not being able to change direction after jumping, and for allowing one extra jump while in the air, allowing the player to change direction once or continue towards the same direction... if anyone here could help me fix one or more of my problems I would greatly appreciate it..
my code might look a bit messy with a couple of unneeded lines here and there, but I've tried to clean it up as much as possible..
if anyone have any comments on my code or anything that could improve it i'd be happy to hear it as well :)
added my code as a png image to make it easier to read.
couldnt figure out how to make it look readable on the forums
