File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ class PlayState extends MusicBeatState
278278 public var camOther : FlxCamera ;
279279 public var cameraSpeed : Float = 1 ;
280280 var hueh231 : FlxSprite ;
281+ var SPUNCHBOB : FlxSprite ;
281282
282283 var notesHitArray : Array <Date > = [];
283284
@@ -5896,9 +5897,23 @@ if (!allSicks && ClientPrefs.colorRatingFC && songMisses > 0 && ClientPrefs.hudT
58965897 {
58975898 hitsound .play (true );
58985899 hitsound .pitch = playbackRate ;
5899- if (hitsound . pitch == 1 )
5900+ if (hitSoundString == ' vine boom ' )
59005901 {
5901- hitsound .pitch = playbackRate ; // set the speed of the hitsound to the playbackrate again if it fucks up the speed
5902+ SPUNCHBOB = new FlxSprite ().loadGraphic (Paths .image (' sadsponge' ));
5903+ SPUNCHBOB .antialiasing = ClientPrefs .globalAntialiasing ;
5904+ SPUNCHBOB .scrollFactor .set ();
5905+ SPUNCHBOB .setGraphicSize (Std .int (SPUNCHBOB .width / FlxG .camera .zoom ));
5906+ SPUNCHBOB .updateHitbox ();
5907+ SPUNCHBOB .screenCenter ();
5908+ SPUNCHBOB .alpha = 1 ;
5909+ SPUNCHBOB .cameras = [camGame ];
5910+ add (SPUNCHBOB );
5911+ FlxTween .tween (SPUNCHBOB , {alpha : 0 }, 1 / (SONG .bpm / 100 ) / playbackRate , {
5912+ onComplete : function (tween : FlxTween )
5913+ {
5914+ SPUNCHBOB .destroy ();
5915+ }
5916+ });
59025917 }
59035918 }
59045919
You can’t perform that action at this time.
0 commit comments