# \[Solved\] Sync character movement speed with animation speed

**URL:** <https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944>\
**Category:** Character & Animation\
**Tags:** unreal-engine, speed, CPP, question\
**Created:** [March 22, 2014, 8:05pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944 "2014-03-22T20:05:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_518c3a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_518c3a4c](https://forums.unrealengine.com/u/anonymous_user_518c3a4c)\
**Post date:** [March 22, 2014, 8:05pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944/1 "2014-03-22T20:05:35Z")

</div>

Hello there.  
I’m playing around with third-person sample and experiencing some issues making smooth animations.  
In animation blueprint of the said sample animation at speed of 90 looks smooth and nice, but character with **MaxWalkingSpeed** of 90 moves way too slow so it looks like the character is trying to moon-dance on ice. As i think setting **MaxWalkingSpeed** to something bigger than 90 but keeping blueprint’s variable at 90 will make a more pleasant look. The question is, how to set blueprint’s variable within ACharacter-derived class. I guess i might find solution in blueprints communication tutorial, but i also feel like there might be other solutions to this, so posting here. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_518c3a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_518c3a4c](https://forums.unrealengine.com/u/anonymous_user_518c3a4c)\
**Post date:** [March 22, 2014, 9:12pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944/2 "2014-03-22T21:12:25Z")

</div>

Made that: AnimationSpeed = MovementSpeed - Constant, 30 in my case. Kinda achieved what i wanted, will have to increase MovementSpeed in code a bit though. Still looking for a way to change blueprint animation variables’ value within C++.  
Edit: nope, didn’t work, because i used Blueprints plugin “Math expressions”, and here is a bug-report actually, editor crashes while trying to load AnimBlueprint asset containing math expressions provided via plugin as it’s not yet loaded.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [March 22, 2014, 9:19pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944/3 "2014-03-22T21:19:37Z")

</div>

#Set Anim BP Vars in C++

I have an entire tutorial about this for you!

With pictures!

**Set Anim BP Vars in Code**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

PS: I like your name 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_518c3a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_518c3a4c](https://forums.unrealengine.com/u/anonymous_user_518c3a4c)\
**Post date:** [March 22, 2014, 9:43pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944/4 "2014-03-22T21:43:55Z")

</div>

Thank you mate, will check asap 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_518c3a4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_518c3a4c](https://forums.unrealengine.com/u/anonymous_user_518c3a4c)\
**Post date:** [March 22, 2014, 10:17pm UTC](https://forums.unrealengine.com/t/solved-sync-character-movement-speed-with-animation-speed/277944/5 "2014-03-22T22:17:19Z")

</div>

Thanks once again mate, works fine. Blueprint got a lot more complicated just to make simple running animation. And the actual thing i had to do is change blendspace a bit.
