Hey!
I am creating a first person parkour game with a couple of friends. I use the movement component for walking jumping and crouching and we already have a slide ability. We would like to use c++ for as much as possible.
I am starting to notice that its really hard to keep track of what state the player is in. So I have if statements everywhere to keep track of what the player can and cant do. For example (in the crouch funtion I have if statements with “if player is not sliding, if player is not jumping, if player is not running, then you can crouch”) but this is gonna be really bad if we add more movement abbilities.
In unity I would create a finite state machine, and there are a lot of good tutorials to help me there. but for unreal I can barely find anything.
How do games made in unreal keep track of all there movement abilties and keep the movement script clean? thank you for reading and helping <3