From e693224fd2fcc525d123441ad1716bda0f42d2b6 Mon Sep 17 00:00:00 2001 From: Kade M Date: Mon, 15 Mar 2021 15:52:51 -0700 Subject: [PATCH] combo can now go over 999 WITHOUT EXTRA IMAGES :))) --- source/PlayState.hx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index aabb992f..5d8cdefe 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1761,10 +1761,17 @@ class PlayState extends MusicBeatState rating.updateHitbox(); var seperatedScore:Array = []; + + var comboSplit:Array = (combo + "").split(''); - seperatedScore.push(Math.floor(combo / 100)); - seperatedScore.push(Math.floor((combo - (seperatedScore[0] * 100)) / 10)); - seperatedScore.push(combo % 10); + if (comboSplit.length == 2) + seperatedScore.push(0); // make sure theres a 0 in front or it looks weird lol! + + for(i in 0...comboSplit.length) + { + var str:String = comboSplit[i]; + seperatedScore.push(Std.parseInt(str)); + } var daLoop:Int = 0; for (i in seperatedScore)