Fix combo counter for 0-9 combos
This commit is contained in:
parent
6b97a66418
commit
f6ef24c302
@ -2729,8 +2729,14 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var comboSplit:Array<String> = (combo + "").split('');
|
var comboSplit:Array<String> = (combo + "").split('');
|
||||||
|
|
||||||
if (comboSplit.length == 2)
|
// make sure we have 3 digits to display (looks weird otherwise lol)
|
||||||
seperatedScore.push(0); // make sure theres a 0 in front or it looks weird lol!
|
if (comboSplit.length == 1)
|
||||||
|
{
|
||||||
|
seperatedScore.push(0);
|
||||||
|
seperatedScore.push(0);
|
||||||
|
}
|
||||||
|
else if (comboSplit.length == 2)
|
||||||
|
seperatedScore.push(0);
|
||||||
|
|
||||||
for(i in 0...comboSplit.length)
|
for(i in 0...comboSplit.length)
|
||||||
{
|
{
|
||||||
@ -2762,7 +2768,6 @@ class PlayState extends MusicBeatState
|
|||||||
numScore.velocity.y -= FlxG.random.int(140, 160);
|
numScore.velocity.y -= FlxG.random.int(140, 160);
|
||||||
numScore.velocity.x = FlxG.random.float(-5, 5);
|
numScore.velocity.x = FlxG.random.float(-5, 5);
|
||||||
|
|
||||||
if (combo >= 10 || combo == 0)
|
|
||||||
add(numScore);
|
add(numScore);
|
||||||
|
|
||||||
FlxTween.tween(numScore, {alpha: 0}, 0.2, {
|
FlxTween.tween(numScore, {alpha: 0}, 0.2, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user