Yo guys! My character moves slower and slower as the graphics improves, can someone tell me how can I make the movement of my character independent form the number of frame? Is this about the event tick right? Thanks!!!
you need to multiply your velocity with DeltaTime before applying it to your location.
NewLocation = OldLocation + (Velocity * DeltaTime)
Could you be more specific? i’m new here i’m struggling to get my character moving faster, thank you so much man!
Basically what @Raildex_ said. If you are moving your character (say a vehicle) by using a specific value (say Float of 20 every Tick). You want to use the node “Get World Delta Time” and multiply this value to your movement value. This will apply the same movement delta per tick (frame) no matter your actual framerate.
If you are using the default Character BP that comes with the Thirdperson template then you dont have to do this.
Got it! thank you so much guys i’ll try it now!
This doesn’t work when using AddMovementInput to move your pawn. It will always be effected by the framerate regardless of whether you multiply it with the delta or not.
You are the first person that has explained that delta won’t matter in this case. I’ve been adding movement input with delta and could not figure out why it wasn’t working because EVERY post I’ve read just says “Multiply by delta time and feed that to the input”.
So thank you @zgzg2020.
I just discovered that while “Add Movement Input” is frame independent, “Add Controller Yaw Input” is frame dependent. For any future viewers.
I am using character movement component and I’m on UE 5.3