Skip to content

Commit

Permalink
ready camFollow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PartnerCapPikachu authored Oct 18, 2024
1 parent be4cd5a commit 04bd052
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 04bd052

Please sign in to comment.