# How do I access the player's current speed in blueprints?

**URL:** <https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325>\
**Category:** Blueprint\
**Tags:** unreal-engine, speed, player, Blueprint, question\
**Created:** [August 29, 2014, 9:11am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325 "2014-08-29T09:11:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenomica](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenomica](https://forums.unrealengine.com/u/Kenomica)\
**Post date:** [August 29, 2014, 9:11am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/1 "2014-08-29T09:11:18Z")

</div>

I’m currently creating an infinite runner game, and I would like to show the current speed on the UI.

I cannot figure out how to access this, I’ve tried getting the players forward vector and length, which results in the UI either showing : 0 for not moving and 1 for moving.

I’ve also tested pick-ups that boost speed and traps that slow the player, and the number still stays at 1.

How can I achieve the result I’m looking for?

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![veggiesaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@veggiesaurus](https://forums.unrealengine.com/u/veggiesaurus)\
**Post date:** [August 29, 2014, 11:05am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/2 "2014-08-29T11:05:09Z")

</div>

Assuming you’re in your character’s blueprint:

- Get velocity
- Convert this to a scalar by getting its length

I beleive the forward vector is a unit vector, which would explain why it doesn’t change length when the character speeds up or slows down.

![14090-speed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/8/de8fba1d330278c6cccb66eccc4eaa6452820fec.png)

---

<div class="post-metadata">

**Author:** ![Kenomica](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenomica](https://forums.unrealengine.com/u/Kenomica)\
**Post date:** [August 30, 2014, 12:56am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/3 "2014-08-30T00:56:04Z")

</div>

Fantastic, that worked perfectly. Thank you!

---

<div class="post-metadata">

**Author:** ![jmalaska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jmalaska](https://forums.unrealengine.com/u/jmalaska)\
**Post date:** [March 15, 2015, 7:29pm UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/4 "2015-03-15T19:29:05Z")

</div>

How would you get this to print and update rather than print a whole flood of text to the screen?

---

<div class="post-metadata">

**Author:** ![Kenomica](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenomica](https://forums.unrealengine.com/u/Kenomica)\
**Post date:** [March 15, 2015, 9:18pm UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/5 "2015-03-15T21:18:21Z")

</div>

You could set a text variable and have that be bound to some text in UMG, I used some maths to convert the vector length to mph.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4a64f014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4a64f014](https://forums.unrealengine.com/u/anonymous_user_4a64f014)\
**Post date:** [September 4, 2017, 2:37am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/6 "2017-09-04T02:37:49Z")

</div>

nice saved me

---

<div class="post-metadata">

**Author:** ![x\_Szlobi\_x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@x\_Szlobi\_x](https://forums.unrealengine.com/u/x_Szlobi_x)\
**Post date:** [January 9, 2018, 5:30pm UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/7 "2018-01-09T17:30:59Z")

</div>

Ahh how obvios! I knew how to get the velocity, but failed to convert it to a float. I never used the ‘vector lenght’ node in my blueprints befor. Now I will always rember it. Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_634562fb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_634562fb](https://forums.unrealengine.com/u/anonymous_user_634562fb)\
**Post date:** [September 18, 2019, 11:10am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/8 "2019-09-18T11:10:16Z")

</div>

You can also just open the print string (Down arrow) and set duration to 0

---

<div class="post-metadata">

**Author:** ![PatyPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatyPotato](https://forums.unrealengine.com/u/PatyPotato)\
**Post date:** [January 19, 2023, 3:25am UTC](https://forums.unrealengine.com/t/how-do-i-access-the-players-current-speed-in-blueprints/292325/9 "2023-01-19T03:25:43Z")

</div>

i have it but it still prints 0?  
im trying this in 2d is there a different method for 2d?
