integer above 9999 ??

jorkosjorkos Member, PRO Posts: 353
Hey guys, I need to go up to 99999 in one of my games.....is this possible at all? My understanding is that the integer limit is 9999. Is there any way around this?? Thanks

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited March 2014

    Hi @jorkos I'm not sure where you've got this info from - certainly for Mac GSC (but surely the same for Windows version) the maximum number is into the thousand millions (trillions).

    Try a little experiment: make an integer attribute and input its start value as 1000000000

    Then put an actor on-screen with a Display Text showing that attribute; it'll show just fine. Of course though, calculations "up in the heavens" here will inevitably go a bit wrong or start to round down to a much lower number at some point...

    But if you're worried about a cut-off of 99999, you've got plenty of "headroom"; there's no worries at all. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jorkosjorkos Member, PRO Posts: 353
    @gyroscope How do you set a global attribute (integer) above 9999 ??
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Type it in. Are you using Mac or Windows Creator?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • jorkosjorkos Member, PRO Posts: 353
    Mac - 10.4.1 - it reverts to 9999
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited March 2014

    So where are you typing it - into a game, scene or self attribute initial value, or into something else?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jorkosjorkos Member, PRO Posts: 353
    global attribute
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Very odd that you get this - I can't duplicate that behaviour at all... I click on the value place of a game attribute and type 99999, press return, and in the field it shows 99,999...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jorkosjorkos Member, PRO Posts: 353
    Sorry you are right I was inputing it incorrectly - it is working. Sorry to use your time for that.....sorry and thanks for helping
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    No worries, @jorkos, and glad it's all working for you now. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.