From 6fe747eac16a0dc592a927a52e68cfaab9e8b4c6 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 19 Apr 2023 04:08:03 -0400 Subject: [PATCH] true perfect --- source/funkin/play/ResultState.hx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/source/funkin/play/ResultState.hx b/source/funkin/play/ResultState.hx index 2bbaea4c5..f7fd52380 100644 --- a/source/funkin/play/ResultState.hx +++ b/source/funkin/play/ResultState.hx @@ -63,6 +63,10 @@ class ResultState extends MusicBeatSubstate bfGfExcellent.visible = false; add(bfGfExcellent); + var bfPerfect:FlxAtlasSprite = new FlxAtlasSprite(370, -180, Paths.animateAtlas("resultScreen/resultsBoyfriendPerfect", "shared")); + bfPerfect.visible = false; + add(bfPerfect); + var bfSHIT:FlxAtlasSprite = new FlxAtlasSprite(0, 20, Paths.animateAtlas("resultScreen/resultsBoyfriendSHIT", "shared")); bfSHIT.visible = false; add(bfSHIT); @@ -77,6 +81,10 @@ class ResultState extends MusicBeatSubstate bfGfExcellent.anim.play(); // unpauses this anim, since it's on PlayOnce! bfSHIT.anim.curFrame = 150; bfSHIT.anim.play(); // unpauses this anim, since it's on PlayOnce! + + bfPerfect.anim.curFrame = 136; + bfPerfect.anim.play(); // unpauses this anim, since it's on PlayOnce! + trace("repeated anim!!"); }, ShowPivot: false, @@ -87,6 +95,7 @@ class ResultState extends MusicBeatSubstate bfGfExcellent.setTheSettings(settings); bfSHIT.setTheSettings(settings); + bfPerfect.setTheSettings(settings); var gf:FlxSprite = new FlxSprite(500, 300); gf.frames = Paths.getSparrowAtlas('resultScreen/resultGirlfriendGOOD'); @@ -274,8 +283,11 @@ class ResultState extends MusicBeatSubstate gf.visible = true; }); case PERFECT: - bfGfExcellent.visible = true; - bfGfExcellent.playAnimation(""); + bfPerfect.visible = true; + bfPerfect.playAnimation(""); + + // bfGfExcellent.visible = true; + // bfGfExcellent.playAnimation(""); default: } }); @@ -363,6 +375,7 @@ class ResultState extends MusicBeatSubstate enum abstract ResultVariations(String) { var PERFECT; + var EXCELLENT; var NORMAL; var SHIT; }