Skip to content

Commit

Permalink
Fix camera follow to properly use character's camX and camY
Browse files Browse the repository at this point in the history
  • Loading branch information
superpowers04 committed Jun 30, 2021
1 parent 58af8ec commit 965774c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ class PlayState extends MusicBeatState
{
var offsetX = 0;
var offsetY = 0;
camFollow.setPosition(dad.getMidpoint().x + 150 + offsetX, dad.getMidpoint().y - 100 + offsetY);
camFollow.setPosition(dad.getMidpoint().x + 150 + offsetX+ dad.camX, dad.getMidpoint().y - 100 + offsetY + dad.camY);
// camFollow.setPosition(lucky.getMidpoint().x - 120, lucky.getMidpoint().y + 210);

switch (dad.curCharacter)
Expand All @@ -1860,7 +1860,7 @@ class PlayState extends MusicBeatState
{
var offsetX = 0;
var offsetY = 0;
camFollow.setPosition(boyfriend.getMidpoint().x - 100 + offsetX, boyfriend.getMidpoint().y - 100 + offsetY);
camFollow.setPosition(boyfriend.getMidpoint().x - 100 + offsetX+ boyfriend.camX, boyfriend.getMidpoint().y - 100 + offsetY+ boyfriend.camY);


switch (curStage)
Expand Down

0 comments on commit 965774c

Please sign in to comment.