Hello
I'm trying to make an experience counter like in games that only shows the percentage of experience it takes
ex: 100/200 = 50%
in order to show only the percentage of the experience that the player has, but this gives me decimals sometimes example 55.0000002% instead of 55%
I'll leave a video or gif of the project and a photo of the variables.
Thank you
gyazo.com/08a37245cfab9ed065cc1c48a0a9572a
Develop games in your browser. Powerful, performant & highly capable.
Use round() like you did elsewhere.
Yeah, use the round() function as blackhornet said.
So your final action would be:
Txt_Exp3: Set text to round(ContadorExperiencia / Experiencia * 100) & "%"
No need to multiply again by 1 as you did in your current code.
Thank you very much to the 2 who helped me <3 and I also leave the example of a gift :D