I’m currently setting up an Enum for the player ‘state’ to help with the game logic (So that the game will know if the player is moving, attacking, etc), but I’m having trouble determining the difference between ‘Idle’ and ‘Moving’, or rather, going back from ‘Moving’ to ‘Idle’.
Currently when the player sends any inputs to move that are valid, the character will change from whatever state they were in to ‘Moving’, but I can’t seem to figure out a reliable way to find out if a player has stopped moving so I can swap them back to ‘Idle’ again.
The closest method I have found is to request the player’s velocity and check that against a pre-defined FVector that would represent no movement, but doing that every tick isn’t really ideal. Any suggestions regarding this?