I'm making a game were the score constantly get's multiplied by 1.5x and 2x. But once it reaches a very high ammount of points it starts to go "minus" instead, what's up with that? :S
Printable View
I'm making a game were the score constantly get's multiplied by 1.5x and 2x. But once it reaches a very high ammount of points it starts to go "minus" instead, what's up with that? :S
A 32 bit integer can only be values from -2147483647 to 2147483648 if it goes too far it will wrap around and become negative.
Ouch... so is there a way to make a score-object that surpasses that limit? Is alterable values also 32 bit integers? And thanks for replying. :)
You can try using the Int64 object. You'll have to store the score in the object and display it as a string though...
So I tried out Int64 object but I ran into two problems:
- Is Int64 able to multiply by 1.5? I can only get it to multiply by 1, 2, 3, 4 and so on...
- I need to make a custom scoretable. Is there a tutorial somewhere?