My game score displays too many decimal points. How do I limit it to whole numbers only without any decimal points?
Hi, you could try the int function: int(Value/Variable).
Hi…Thanks for the reply but I am really sorry I am not able to understand…Can you please elaborate?
I have seen
but still not able to understand. Do i need to edit json file?
When you are going to display the score do something like ToString(int(your_score_variable)) this is called casting an object.
Maybe the your_score_variable is a float or a string number so doing:
int(variable) you are casting any value of variable to be converted as an integer.
Hope this helps.
Thanks @UlisesFreitas @Drona
but i did it in a different way…I don’t know whether I am right or wrong?
I used “ceil” in action menu
change the global variable Coins = ceil(GlobalVariable(Coins))
Thanks
Is perfectly accepted to use ceil or floor depending on your needs.