From 79ce2237fcc8fc005eb435e32ccc43fa363ab465 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sun, 1 May 2022 15:23:09 -0400 Subject: [PATCH] small cam fix anotha hehe --- source/funkin/play/PlayState.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index 8c0dddff6..be8229e16 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1491,7 +1491,7 @@ class PlayState extends MusicBeatState implements IHook return; // HARDCODED +150, CHANGE LATER??? - var camPosOffsetDad:Float = 150; + var camPosOffsetDad:FlxPoint = FlxPoint.get(150, -100); var camPosOffsetBF:Float = -100; var isFocusedOnDad = cameraFollowPoint.x == currentStage.getDad().cameraFocusPoint.x; @@ -1525,13 +1525,13 @@ class PlayState extends MusicBeatState implements IHook // Focus the camera on the opponent. cameraFollowPoint.setPosition(currentStage.getDad().cameraFocusPoint.x, currentStage.getDad().cameraFocusPoint.y); - FlxG.camera.targetOffset.x = camPosOffsetDad; + FlxG.camera.targetOffset.set(camPosOffsetDad.x, camPosOffsetDad.y); // TODO: Un-hardcode this stuff. if (currentStage.getDad().characterId == 'mom') { vocals.volume = 1; - FlxG.camera.targetOffset.x = 0; + FlxG.camera.targetOffset.y = 0; } if (currentStage.getDad().characterId == "senpai" || currentStage.getDad().characterId == 'senpai-angry')