From 7c6e9150c1b603da4a268cf23e166764440457ae Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Mon, 21 Oct 2024 22:54:34 -0400 Subject: [PATCH] why create comboSpr? lol --- source/editors/EditorPlayState.hx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/source/editors/EditorPlayState.hx b/source/editors/EditorPlayState.hx index ad4969b8ca6..dafcc93cac1 100644 --- a/source/editors/EditorPlayState.hx +++ b/source/editors/EditorPlayState.hx @@ -856,32 +856,17 @@ class EditorPlayState extends MusicBeatState rating.x += ClientPrefs.comboOffset[0]; rating.y -= ClientPrefs.comboOffset[1]; - var comboSpr:FlxSprite = new FlxSprite().loadGraphic(Paths.image(pixelShitPart1 + 'combo' + pixelShitPart2)); - comboSpr.screenCenter(); - comboSpr.x = coolText.x; - comboSpr.acceleration.y = 600; - comboSpr.velocity.y -= 150; - comboSpr.visible = !ClientPrefs.hideHud; - comboSpr.x += ClientPrefs.comboOffset[0]; - comboSpr.y -= ClientPrefs.comboOffset[1]; - - comboSpr.velocity.x += FlxG.random.int(1, 10); comboGroup.add(rating); if (!PlayState.isPixelStage) { rating.setGraphicSize(Std.int(rating.width * 0.7)); rating.antialiasing = ClientPrefs.globalAntialiasing; - comboSpr.setGraphicSize(Std.int(comboSpr.width * 0.7)); - comboSpr.antialiasing = ClientPrefs.globalAntialiasing; } else { rating.setGraphicSize(Std.int(rating.width * PlayState.daPixelZoom * 0.85)); - comboSpr.setGraphicSize(Std.int(comboSpr.width * PlayState.daPixelZoom * 0.85)); } - - comboSpr.updateHitbox(); rating.updateHitbox(); var seperatedScore:Array = []; @@ -936,15 +921,9 @@ class EditorPlayState extends MusicBeatState coolText.text = Std.string(seperatedScore); FlxTween.tween(rating, {alpha: 0}, 0.2, { - startDelay: Conductor.crochet * 0.001 - }); - - FlxTween.tween(comboSpr, {alpha: 0}, 0.2, { onComplete: function(tween:FlxTween) { coolText.destroy(); - comboSpr.destroy(); - rating.destroy(); }, startDelay: Conductor.crochet * 0.001