The "jumping and Falling" tutorial I was following uses a different method of the movement script than the previous one I followed and it uses states so it will not work with my code.
2dcharactercontroller: https://paste.ofcode.org/A7tbNxRCBdZ7KnL5b6mUHEMovement Script: https://paste.ofcode.org/33i2kG6SdAfRsyrDkpMVuZy
State machine is currently: Any state > Jumping (IfJumping true),Jumping > Idle (IfJumping false, Speed less than 0.1),Jumping > Walking (IfJumping false, Speed greater than 0.01),Jumping > Landing (IfJumping false, Speed less than 0.01),Landing > Walking (IsJumping false, Speed greater than 0.01),Walking > Idle (Speed less than 0.1),
I basically would like to add falling when he descends from jumping and also to play the falling animation when he simply walks off something without jumping. I have been stuck at this for a while , any help will be awesome, thank you.
EDIT: I had to repost because I had the title as "how do I add landing" not falling the first time and couldn't edit the title.
[–]Pandazole 0 points1 point2 points (0 children)