Dazed & Confused for so long... re: "display text" problem

ScootsScoots Member Posts: 507
edited November -1 in Working with GS (Mac)
Hi Guys,Gals & Sheep

I have been stumped on this problem for a while and wondering if any of you can help. I have a phone keypad much like the one of your iPhone. I have it display the numbers as you would expect but when it gets to the 9th & 10th digit it displays a random number not the correct one that is pushed. Even if I just hit the number 1 key 10 times I will get eight 1's then 2 other numbers. I made a test character to display all of the individual display text attributes and all come up correct. I checked all the attributes many times and all seem fine.

Any ideas? this is last bug then I can release this app ;-)

Comments

  • ScootsScoots Member Posts: 507
    Oh cool Tshirtbooth, I'll zip it up. Thanks
  • ScootsScoots Member Posts: 507
    Ok Than you for looking at it TSB, I was going nuts with that issue. :-)
  • frariofrario Member Posts: 164
    which variables type did you use to store the data?
  • ScootsScoots Member Posts: 507
    frario said:
    which variables type did you use to store the data?

    I'm just using game attributes and actor attributes to keep track of how many digits I have (10) & what they are.

    ( i.e.)when game.total numbers = 3
    change game.number3 to (actor attribute) self.mynumber

    then in the dsiplay text area
    if game.total numbers = 3 display text game.number1..gamenumber2..gamenumber3
  • ScootsScoots Member Posts: 507
    [SOLVED] if anyone has been following this thread I solved the problem today ;-)
    I was adding the parenthesis and the hyphen to make it look proper (123)456-7890 and after I did that it all worked.

    It's a mystery to me but at least it's working.

    I'll be posting this as a demo soon.

    Thanks again TSB for looking at it.
  • xarmianxarmian Member Posts: 124
    From what I've found, it's an issue with displaying an integer larger than 8 characters. By adding the parenthesis and hyphen it turns the integer into a string and it can display correctly. With that in mind, I would avoid allowing a score to be larger than 8 characters too, because you wont be able to display it.
  • ScootsScoots Member Posts: 507
    xarmian said:
    From what I've found, it's an issue with displaying an integer larger than 8 characters. By adding the parenthesis and hyphen it turns the integer into a string and it can display correctly. With that in mind, I would avoid allowing a score to be larger than 8 characters too, because you wont be able to display it.

    Thanks xarmian, but it's not a score it's a phone screen for the dial pad.
Sign In or Register to comment.