i have an endless runner kind of game, based on the SideScrollerBP-Example. The “Event-Tick” is hooked up to an “Add Movement Input”- Node and the Scale-Value is set to “1” so that the runner runs by itself. Whenever someone presses the “RunRight”-key the speed of the runner is increased by 10.
My problem now is that the time between pressing the key to increase the speed and the increasing of the speed is framerate dependent, cause the speed is only updated every frame (by calling “Add Movement Input” every frame). How can i now increase the speed at the exact same time independent of framerate? I tried a Timer that calls the “Add Movement Input” every 1ms, but this seems hacky (and i’m not really sure that this works correctly).