How do I remove the extra zeros in the combo sprite? #2000
Answered
by
Snirozu
XavierCodes99
asked this question in
Q&A
-
How do I do this? Pls? |
Beta Was this translation helpful? Give feedback.
Answered by
Snirozu
Jun 5, 2022
Replies: 1 comment 1 reply
-
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));
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
XavierCodes99
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
change
in popUpScore() to