|
-
display score as dollar and cents amounts
I’m making a game that requires the user to earn money.
I’m able to display the numbers using:
scoreDisplay.text = gameScore.toFixed(2);
But I cannot seem to create a variable that will add 50 cents or 75 cents to the total and have it display properly.
Does anyone have a solution?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|