Skip to content

Commit bbe3464

Browse files
Option stufff for camer abop event idk (#811)
* Update PlayState.hx * Fix camera zoom logic in PlayState.hx --------- Co-authored-by: Ralty <78720179+Raltyro@users.noreply.github.com>
1 parent 3a88e78 commit bbe3464

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/funkin/game/PlayState.hx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,11 +1587,13 @@ class PlayState extends MusicBeatState
15871587
var camera:FlxCamera = event.params[1] == "camHUD" ? camHUD : camGame;
15881588
camera.zoom += event.params[0];
15891589
case "Camera Bop":
1590-
if (useCamZoomMult) {
1591-
camZoomingMult += event.params[0];
1592-
} else {
1593-
FlxG.camera.zoom += event.params[0] * camZoomingStrength;
1594-
camHUD.zoom += event.params[0] * camZoomingStrength;
1590+
if (Options.camZoomOnBeat) {
1591+
if (useCamZoomMult) {
1592+
camZoomingMult += event.params[0];
1593+
} else {
1594+
FlxG.camera.zoom += event.params[0] * camZoomingStrength;
1595+
camHUD.zoom += event.params[0] * camZoomingStrength;
1596+
}
15951597
}
15961598
case "Camera Zoom":
15971599
var cam = event.params[2] == "camHUD" ? camHUD : camGame;

0 commit comments

Comments
 (0)