Skip to content

Commit

Permalink
Prevents camera movement, shaking, and flash update (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstoyAburridowGH authored Mar 26, 2024
1 parent 5395f46 commit 0c06bf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/funkin/backend/utils/FunkinParentDisabler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class FunkinParentDisabler extends FlxBasic {
FlxTimer.globalManager._timers = [];

// cameras
__cameras = [for(c in FlxG.cameras.list) if (c.followEnabled) c];
for(c in __cameras) c.followEnabled = false;
__cameras = [for(c in FlxG.cameras.list) if (c.active) c];
for(c in __cameras) c.active = false;

// sounds
__sounds = [for(s in FlxG.sound.list) if (s.playing) s];
Expand Down Expand Up @@ -61,7 +61,7 @@ class FunkinParentDisabler extends FlxBasic {
for(t in __tweens) FlxTween.globalManager._tweens.push(t);
for(t in __timers) FlxTimer.globalManager._timers.push(t);
}
for(c in __cameras) c.followEnabled = true;
for(c in __cameras) c.active = true;
for(s in __sounds) s.play();
}
}
Expand Down

0 comments on commit 0c06bf7

Please sign in to comment.