From 411918a0fdd0eccd79b28c7975bd56cafe0d866f Mon Sep 17 00:00:00 2001 From: Patommmmm <49255580+devkcud@users.noreply.github.com> Date: Tue, 22 Mar 2022 20:36:59 -0300 Subject: [PATCH] Fix some bugs audio duplication bug was fixed lol --- objects/objPlacer/Step_0.gml | 4 ++-- objects/objPush/Alarm_0.gml | 2 +- objects/objPush/Mouse_5.gml | 2 +- objects/objShader/Create_0.gml | 5 ++--- .../f289f542-af80-4279-bc75-93a4bac2246a.png | Bin 312 -> 300 bytes .../118021dd-feeb-4b6e-a168-1f297f2db6ca.png | Bin 312 -> 300 bytes 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/objects/objPlacer/Step_0.gml b/objects/objPlacer/Step_0.gml index 8ba5a65..e3ee471 100644 --- a/objects/objPlacer/Step_0.gml +++ b/objects/objPlacer/Step_0.gml @@ -7,11 +7,11 @@ yy = clamp(round(mouse_y / GRID_WxH) * GRID_WxH, (GRID_BUFFER + GRID_WxH), room_ if (keyboard_check_pressed(ord("D"))) imgAngle -= 90; if (keyboard_check_pressed(ord("A"))) imgAngle += 90; -with (objCursor) if (!place_free(x, y) || place_meeting(x, y, objScore) || distance_to_object(objScore) < other.minDist) return; +with (objCursor) if (!place_free(x, y) || place_meeting(x, y, objPush) || place_meeting(x, y, objScore) || distance_to_object(objScore) < other.minDist) return; if (mouse_check_button_pressed(mb_left) && objRoomManager.quantityOfPushs > 0) { objRoomManager.quantityOfPushs -= 1; var obj = instance_create_layer(xx, yy, layer, objPush); with (obj) image_angle = other.imgAngle; - audio_play_sound(sndPlace, 0, false); + if (!audio_is_playing(sndPlace)) audio_play_sound(sndPlace, 0, false); } diff --git a/objects/objPush/Alarm_0.gml b/objects/objPush/Alarm_0.gml index 09666b1..b635168 100644 --- a/objects/objPush/Alarm_0.gml +++ b/objects/objPush/Alarm_0.gml @@ -35,5 +35,5 @@ if (place_meeting(x + xx, y, objFlipLeft) || place_meeting(x, y + yy, objFlipLef if (place_free(x + xx, y) && place_free(x, y + yy)) { x += xx; y += yy; - audio_play_sound(sndWalk, 0, false); + if (!audio_is_playing(sndWalk)) audio_play_sound(sndWalk, 0, false); } diff --git a/objects/objPush/Mouse_5.gml b/objects/objPush/Mouse_5.gml index 62d47ed..13f12fa 100644 --- a/objects/objPush/Mouse_5.gml +++ b/objects/objPush/Mouse_5.gml @@ -4,4 +4,4 @@ if (runMode == true || gamePoints == gamePointsTotal) return; objRoomManager.quantityOfPushs += 1; instance_destroy(); -audio_play_sound(sndRemove, 0, false); +if (!audio_is_playing(sndRemove)) audio_play_sound(sndRemove, 0, false); diff --git a/objects/objShader/Create_0.gml b/objects/objShader/Create_0.gml index f9f320b..4a9975a 100644 --- a/objects/objShader/Create_0.gml +++ b/objects/objShader/Create_0.gml @@ -1,10 +1,9 @@ /// @desc ? horrifi_enable(true); -horrifi_bloom_set(true, 15.00, 0.30, 0.65); +horrifi_bloom_set(true, 15.00, 0.20, 0.65); horrifi_chromaticab_set(true, 0.15); horrifi_scanlines_set(true, 0.30); -horrifi_vhs_set(true, 0.30); +horrifi_vhs_set(true, 0.20); horrifi_vignette_set(true, 0.30, 1.00); -horrifi_crt_set(false, 1.45); horrifi_noise_set(true, 0.25); diff --git a/sprites/sprPush/f289f542-af80-4279-bc75-93a4bac2246a.png b/sprites/sprPush/f289f542-af80-4279-bc75-93a4bac2246a.png index 1f5c8d0311e95bf15414fe86b45c97033515e040..2622f51e148882b521a51f1b611e9c2daec53404 100644 GIT binary patch delta 153 zcmV;K0A~NV0;~d%Bmwi0C3}Bz0eXmht$G2b(Mv{}Ie=6!>Hw-c02b#kfGh54<^WOw zP6wd-gjjWid`z?h=ml^(fRIlJK=(O@0|p9UH~>8)s09XX?-&3MU1&uc3XK0MqCtBhe0^H5hdOK?lI%kh@KSC<9^Y zVE|X$6YT(61Dp;(Prcj>*h7F+9~12WdI6jcAmkH5`I}+~&Hw-c02b#kfGh54<^WOw zP6wd-gjjWid`z?h=ml^(fRIlJK=(O@0|p9UH~>8)s09XX?-&3MU1&uc3XK0MqCtBhe0^H5hdOK?lI%kh@KSC<9^Y zVE|X$6YT(61Dp;(Prcj>*h7F+9~12WdI6jcAmkH5`I}+~&