Skip to content

How do I remove the extra zeros in the combo sprite? #2000

Answered by Snirozu
XavierCodes99 asked this question in Q&A
Discussion options

You must be logged in to vote

change

seperatedScore.push(Math.floor(combo / 100));
seperatedScore.push(Math.floor((combo - (seperatedScore[0] * 100)) / 10));
seperatedScore.push(combo % 10);

in popUpScore() to

for (_i in Std.string(combo).split("")) {
	seperatedScore.push(Std.parseInt(_i));
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XavierCodes99
Comment options

Answer selected by XavierCodes99
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants