From efd3d5180b11835283b351a19af2b1808222a6f9 Mon Sep 17 00:00:00 2001 From: Karim Akra <144803230+KarimAkra@users.noreply.github.com> Date: Sun, 17 Aug 2025 22:46:26 +0300 Subject: [PATCH] Don't use resetSprite as a static extension --- source/funkin/game/PlayState.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 04be79819..654973a27 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1950,7 +1950,7 @@ class PlayState extends MusicBeatState var suf:String = hasEvent ? evt.ratingSuffix : ""; var rating:FlxSprite = comboGroup.recycleLoop(FlxSprite); - rating.resetSprite(comboGroup.x + -40, comboGroup.y + -60); + CoolUtil.resetSprite(rating, comboGroup.x + -40, comboGroup.y + -60); rating.loadAnimatedGraphic(Paths.image('${pre}${myRating}${suf}')); rating.acceleration.y = 550; rating.velocity.y -= FlxG.random.int(140, 175); @@ -1977,7 +1977,7 @@ class PlayState extends MusicBeatState if (evt.displayCombo) { var comboSpr:FlxSprite = comboGroup.recycleLoop(FlxSprite).loadAnimatedGraphic(Paths.image('${pre}combo${suf}')); - comboSpr.resetSprite(comboGroup.x, comboGroup.y); + CoolUtil.resetSprite(comboSpr, comboGroup.x, comboGroup.y); comboSpr.acceleration.y = 600; comboSpr.velocity.y -= 150; comboSpr.velocity.x += FlxG.random.int(1, 10); @@ -2001,7 +2001,7 @@ class PlayState extends MusicBeatState for (i in 0...separatedScore.length) { var numScore:FlxSprite = comboGroup.recycleLoop(FlxSprite).loadAnimatedGraphic(Paths.image('${pre}num${separatedScore.charAt(i)}${suf}')); - numScore.resetSprite(comboGroup.x + (43 * i) - 90, comboGroup.y + 80); + CoolUtil.resetSprite(numScore, comboGroup.x + (43 * i) - 90, comboGroup.y + 80); if (hasEvent) { numScore.antialiasing = evt.numAntialiasing; numScore.scale.set(evt.numScale, evt.numScale); @@ -2236,4 +2236,4 @@ class CamPosData { pos.put(); pos = null; } -} \ No newline at end of file +}