From 32976a2df330a51fb3e47647cf093774adfdab1b Mon Sep 17 00:00:00 2001 From: somefnfplayerlol <89298564+somefnfplayerlol@users.noreply.github.com> Date: Mon, 27 Sep 2021 05:12:46 -0700 Subject: [PATCH] new method on getting fps? i found this new method while i was reading https://api.haxeflixel.com/lime/ui/Window.html --- source/PlayState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 320e7fe09ba..35f5d3dfbe9 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -812,7 +812,7 @@ class PlayState extends MusicBeatState add(camFollow); - FlxG.camera.follow(camFollow, LOCKON, 0.04 * (30 / (cast(Lib.current.getChildAt(0), Main)).getFPS())); + FlxG.camera.follow(camFollow, LOCKON, 0.04 * (30 / Application.current.window.frameRate)); // FlxG.camera.setScrollBounds(0, FlxG.width, 0, FlxG.height); FlxG.camera.zoom = Stage.camZoom; FlxG.camera.focusOn(camFollow.getPosition());