Ok i have been racking my brain for a couple of weeks now and searching for tutorials and haven’t found any for what I need. So I will explain what I want to do here and hopefully someone one can help me with the issue.
On the Flying pawn in the this template I want to make it so if you press one key it will accelerate you like about 10% of max speed every time you push the key, the more you push the key it adds another 10%, for example: first push 10% second push 20% ect. and maintain that speed until you hit the decelerate key which will reduce speed the same way. I can’t find any tutorial that covers this one bit, is it possible to do or not? I really could use some help with blueprinting this.
I can’t remember exactly how the flying pawn is set up but there are two ways I can think of. You can set velocity in the movement component, so with each press increase velocity by 1/10 of max speed. You may way to have a lerp for smoother acceleration. The other way is to add to local location a certain about per tick and crease the amount added with each key press. Once again, a lerp will likely be needed.
Set up a Throttle integer variable, increase or decrease it by 1 for each key press. Multiply the Throttle by 10(0, 00, 000). That is your percentage of max velocity. Clamp it between lowest and highest value. Plug into the velocity. Lerp to it.
Plug-n-play version: Get max velocity, divide it by 10. Store Divided Velocity in float variable. On steps above, replace the 10 with Divided Velocity. This will allow you to play with maximum velocity differences that will always give 1/10th per throttle press.
This is what I was looking for do you by chance have some example blue print for this setup? Also not sure how the Blue print would attach to what I have now? Here is what I have now for thrust: