# Have to double-tap to activate sprint?

**URL:** <https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795>\
**Category:** Programming & Scripting\
**Tags:** ue4-build, unreal-engine, question, Blueprint\
**Created:** [April 27, 2023, 3:33am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795 "2023-04-27T03:33:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [April 27, 2023, 3:33am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/1 "2023-04-27T03:33:55Z")

</div>

Using 4.27. I have an ability for my character to sprint, and it works, but for some reason it doesn’t engage the first time I tap the button. I have to tap it twice to get him to sprint. After that it works fine. Is there a way to NOT have the double tap at all?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/4/844fee766f2aa43b5ddf91df3c33bf6ea641de6f.png)

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [April 27, 2023, 8:40am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/2 "2023-04-27T08:40:59Z")

</div>

It’s likely that you have to change the **Is Running** variables _default value_ from what it currently is to the inverted.

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [April 28, 2023, 1:03am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/3 "2023-04-28T01:03:45Z")

</div>

Ah - you’re probably right LOL thanks.

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [April 28, 2023, 1:21am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/4 "2023-04-28T01:21:34Z")

</div>

Alas! No… I tried a variety of tings, including what you had suggested and nothing worked.

I added print strings to show if/when the actions are firing and they are fine - EXCEPT that it doesn’t fire the first time I hit the LSHIFT key. Once I release it you can see the ‘RUNNING’ note pop up and then ‘SPRINTING’ each time after.

I have also placed a print string to show ‘FIRST CLICK’ to show when I actually press the key.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a05fbe98c0d9537b7e23ce8b0f977c2fa9a87c8.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a05fbe98c0d9537b7e23ce8b0f977c2fa9a87c8.mp4)

As you can see, the FIRST CLICK is firing but the character doesn’t sprint until I release and re-engage the key.

I tried adding a second branch but that didn’t work. I tried a few things and either it didn’t engage the sprint at all or my character would be placed in a perpetual sprint. =/

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [April 28, 2023, 8:24am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/5 "2023-04-28T08:24:06Z")

</div>

The booleans default value needs to be set to true in order for The first click to trigger into a sprint. Then, shouldn’t the **Is Sprinting** be set to true?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 28, 2023, 8:44am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/6 "2023-04-28T08:44:11Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/d/8bd818a30fd18b2f67ff48659b23534f5d9622a6.png)

or even:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/4/d0454c98290630f82a1f39fe15c2e499f8b466f1.png)

---

<div class="post-metadata">

**Author:** ![RLK\_III](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rlk_iii/32/706835_2.png) [@RLK\_III](https://forums.unrealengine.com/u/RLK_III)\
**Post date:** [April 30, 2023, 6:53am UTC](https://forums.unrealengine.com/t/have-to-double-tap-to-activate-sprint/1145795/7 "2023-04-30T06:53:13Z")

</div>

I tried the first option and it didn’t change anything…

Then second options kinda worked, but replaced my WALK/RUN toggle with the sprint.

e.g. I have CAPS LOCK set as my WALK/RUN toggle and LSHIFT as SPRINT

Suddenly CAPS LOCK worked to SPRINT but no longer toggle walk/run.

I think the answer is here - I just have to play with it a little. Thanks 🙂
