Rolling Ball Game FPS Issues
I'm working on a small rolling ball game as a quick project, and I'm running into FPS-related issues. The screenshots below are of my pawn BP, and the movement is exactly the way I want it... at 120 FPS. The pawn's max straight-line speed is about 658 at 120 FPS. If I uncap the FPS, the max straight-line speed goes to somewhere around 3530, and with FPS capped at 30, it's 50. I'm looking for a way for the pawn to move at consistently the same speed, regardless of FPS.
Any and all suggestions are appreciated.
asked May 13 '17 at 12:16 AM in Blueprint Scripting
You can use is 'GetWorldDeltaSeconds'.Multiply it with your end speed that is responsible for movement. It'll make your movement consistent over all frame-rates. (this will slow down your speed, so to overcome, you can multiply with some offset like '30' may be.. ) basically, what it does is 1/FPS here is the detailed explanation: https://www.youtube.com/watch?v=8DxnRPwZMOs
let me know if it works.
answered May 13 '17 at 03:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here