# Frame dependency not working?

**URL:** <https://forums.unrealengine.com/t/frame-dependency-not-working/2276594>\
**Category:** Blueprint\
**Tags:** unreal-engine, delta-time, Blueprint, question\
**Created:** [January 14, 2025, 2:17pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594 "2025-01-14T14:17:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuztJoker\_YT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JuztJoker\_YT](https://forums.unrealengine.com/u/JuztJoker_YT)\
**Post date:** [January 14, 2025, 2:17pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594/1 "2025-01-14T14:17:24Z")

</div>

I’m trying to get my game objects to move at the same speed no matter what framerate I’m running the game at, but I can’t seem to get it working. This is the code I am using.

 ![image_2025-01-14_151528663](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/0/7b054123c0aa8dade0e5bdc6c59871795c3a7ecd.png)

I multiply the speed I apply to the player by World Delta Seconds, but objects still move slower at lower framerates.  
For context: the Acceleration variable is completely independent of the framerate, it is only dependent on the player’s position in world space.

Am I using World Delta Seconds in the wrong way or moment?

---

<div class="post-metadata">

**Author:** ![JakeSimpson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakesimpson/32/1008711_2.png) [@JakeSimpson](https://forums.unrealengine.com/u/JakeSimpson)\
**Post date:** [January 14, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594/2 "2025-01-14T14:38:34Z")

</div>

Hey,

I believe you want to move the Delta Multiplication to the point where you add the Accel to the speed. At this point the Acceleration should be multiplied by DeltaTime, which should reduce the amount that speed is increased/decreased each frame based on that value.

---

<div class="post-metadata">

**Author:** ![JuztJoker\_YT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JuztJoker\_YT](https://forums.unrealengine.com/u/JuztJoker_YT)\
**Post date:** [January 14, 2025, 3:27pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594/3 "2025-01-14T15:27:13Z")

</div>

I tried these two solutions just now:

 ![image_2025-01-14_162640312](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/1/5c164dd7619335a7d89f9955caa0c1a9c0dbde4b.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/9/c8950c061abe9f621c5668642f59441666a11ac3.png)

neither solves the issue. Do you have any other ideas what it could be?

Edit: I did some more testing and the top solution does seem to work. Would it make sense to you that I multiply by World Delta Seconds twice?

---

<div class="post-metadata">

**Author:** ![JakeSimpson](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakesimpson/32/1008711_2.png) [@JakeSimpson](https://forums.unrealengine.com/u/JakeSimpson)\
**Post date:** [January 14, 2025, 4:10pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594/4 "2025-01-14T16:10:18Z")

</div>

Yeah I think the reason your needing to do that twice there is because of how your changing the location.

So yeah you want to make sure your only adjusting the Acceleration based on the frame rate but you also want to ensure your moving based on your speed value according to the Frame Rate as well.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 13, 2025, 4:10pm UTC](https://forums.unrealengine.com/t/frame-dependency-not-working/2276594/5 "2025-02-13T16:10:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
