How to gradually increase speed when moving forward

Pawn movement is part of “simulation” not part of “animation.”
What you want here is simulated inertia.
Neither timelines, nor enhanced input, will give you that. You have to instead build the notion of inertia, and acceleration, into your control and simulation scheme.

If you’re using Unreal physics objects, then do this with friction, and forces. When input forward is received, add a force to the simulated tank object, in its forward direction. When not received, let friction do the work of slowing it down, and/or add a reverse force proportional to the current speed of the object.
If not using Unreal physics objects, you have to keep a vector for “current velocity” and each tick, slow it down a little bit, and then if the “move foward” is received, and you’re below the max speed, add a little bit of the object forward vector to the velocity.

2 Likes

I’m not currently using physics for it but I think I might need to get that sorted if this way would work.

cc1d5eef922770a58a3648e8cc1bf0d7
I’ve tried enabling the physics on the vehicle, swapped out the old code for adding force to the main piece but nothing happens when I press W

You need to add force each tick the key is down, not just once.

Do your float variables have values? and how did you get that input on the far left. I’ve set this all up but nothing moves.