I�ve come across a math problem with the xp in my game. I have two variables: XP and XP_MAX. When the players XP is equal or greater he gains a level and the XP is set to what was left after leveling. Now for the problem:
when a level is gained the value for XP_MAX is increased like this: Self.XP_MAX * 1.2 Soon the value will get lots of decimals and I wonder if there is a way to round off that or some parameters to put in so the value can�t get into decimals?
Will keep trying but would appreciate any input :)
Thanx