From e6f115dbfe293887c02c88640148c3900685574f Mon Sep 17 00:00:00 2001 From: MtH Date: Mon, 19 Apr 2021 19:11:30 +0200 Subject: [PATCH] cam lerp on gameover --- source/GameOverSubstate.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/GameOverSubstate.hx b/source/GameOverSubstate.hx index 7d35b6f42..9bf0c466a 100644 --- a/source/GameOverSubstate.hx +++ b/source/GameOverSubstate.hx @@ -70,6 +70,9 @@ class GameOverSubstate extends MusicBeatSubstate override function update(elapsed:Float) { + // makes the lerp non-dependant on the framerate + FlxG.camera.followLerp = CoolUtil.camLerpShit(0.01); + super.update(elapsed); if (controls.ACCEPT) @@ -96,7 +99,7 @@ class GameOverSubstate extends MusicBeatSubstate if (bf.animation.curAnim.name == 'firstDeath' && bf.animation.curAnim.curFrame == 12) { - FlxG.camera.follow(camFollow, LOCKON, 0.01); + FlxG.camera.follow(camFollow, LOCKON, CoolUtil.camLerpShit(0.01)); } switch (PlayState.storyWeek)