Prevents camera movement, shaking, and flash update (#257)

This commit is contained in:
EstoyAburridowGH
2024-03-26 02:16:26 +01:00
committed by GitHub
parent 5395f460bd
commit 0c06bf73b3
@@ -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];
@@ -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();
}
}