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());