Sprinting Logic

how can i alter this sprinting code from the first person blueprint so that when the player is sprinting and stops moving, the sprint doesnt continue when the player starts moving again.

You have to add conditional logic to movement input (Fwd/Bwd, Left/Right).

If (Velocity == 0 && Is Sprinting == true) → Set Is Sprinting == false

sorry im fairly new to blueprints. where would i implement this?


Vector length here, gives us the speed in which the character is moving

So you’d check this after InputAction Sprint

Here’s part of what i’ve got going on with my sprint to give you a better idea, tho mine gets disabled when the player runs out of stamina, and or releases the sprint key