Highest Possible Score/Integer Problem
Hey Everyone,
So I am using integers for money earned in my game and it seems it only goes up to 9,999,999. Is there any way to make it higher then that? If I go any higher the game just displays a weird equation.
So I am using integers for money earned in my game and it seems it only goes up to 9,999,999. Is there any way to make it higher then that? If I go any higher the game just displays a weird equation.
Best Answers
-
fadamion Posts: 309
ya it looks something like this right? 1.251e+06
you could have 2 numbers right next to each other and when the first number gets full have it spill over to the next with an attribute that should get you to 99,999,999,999,999 make sense? -
lukey5227 Posts: 111
As far as I can tell, the highest number GS can deal with is around 2 billion, not 10 million. Anyway, if you have problems going to 10 million, there are tutorials out there showing how to create a second variable to store higher numbers. Not that hard, just some dividing, flooring, and remainders
- 5227 -
GLGAMES SingaporePosts: 988
The only way now is custom fonts for display score instead of text box. This way you can have higher score limits. And yes there are some tutorials on custom fonts for scoring.
Answers