Highest Possible Score/Integer Problem

EricTippettEricTippett Member Posts: 45
edited July 2012 in Working with GS (Mac)
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.

Best Answers

  • fadamionfadamion Posts: 309
    Accepted Answer
    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?
  • lukey5227lukey5227 Posts: 111
    Accepted Answer
    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
  • GLGAMESGLGAMES SingaporePosts: 988
    Accepted Answer
    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

  • EricTippettEricTippett Member Posts: 45
    Ah yea that makes sense, so there is no way to increase this number or anything right? I could just adjust the costs as well I guess.
  • EricTippettEricTippett Member Posts: 45
    edited July 2012
    I dont know but right when I hit 1,000,000 the game gives that crazy equation, so I can only get up to 999,999. Do you have to do something special to get to 2 billion?
  • EricTippettEricTippett Member Posts: 45
    Ah good because I was going to have custom everything anyways. First I was just using the placeholder text and images. Then when I get the game to work properly, I will take the time and create all the art for it.
Sign In or Register to comment.