From 04bd0520e6e69b1cb7e06e76f9cd24ae54d2da40 Mon Sep 17 00:00:00 2001 From: Pumpsuki <71671417+PartnerCapPikachu@users.noreply.github.com> Date: Fri, 18 Oct 2024 03:25:44 -0400 Subject: [PATCH] ready camFollow Initialized camFollow without calling moveCameraSection. This is so it doesn't break anything called at onCreate related to camFollow without calling moveCameraSection and messing up the focus check. --- source/states/PlayState.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/states/PlayState.hx b/source/states/PlayState.hx index da3cd2d3476..515a22e17bb 100644 --- a/source/states/PlayState.hx +++ b/source/states/PlayState.hx @@ -505,7 +505,14 @@ class PlayState extends MusicBeatState FlxG.camera.snapToTarget(); FlxG.worldBounds.set(0, 0, FlxG.width, FlxG.height); - //moveCameraSection(); + if (SONG.notes[curSection] != null) + { + var leSec:SwagSection = SONG.notes[curSection]; + if (gf != null && leSec.gfSection) + moveCameraToGirlfriend(); + else + moveCamera(!leSec.mustHitSection); + } healthBar = new Bar(0, FlxG.height * (!ClientPrefs.data.downScroll ? 0.89 : 0.11), 'healthBar', function() return health, 0, 2); healthBar.screenCenter(X);