Need help with Jumpy numbers in "display Text"

bajashbajash Member, PRO Posts: 215
edited March 2012 in Working with GS (Mac)
Hi All,

I am displaying an output of a math formula in the Display Text behavior. The output of the digits are very jumpy. Is there anyway to stop this?

Comments

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Very jumpy? Not sure what you mean buddy?

    Ace
  • bajashbajash Member, PRO Posts: 215
    display output of numbers is very sensitive and my devise is not even moving and numbers keep changing.
  • MotherHooseMotherHoose Member Posts: 2,456
    edited March 2012
    the font you are using for displayText is not a fixedWidth
    therefore the individual numbers display at their bitmap width which varies from number to number
    and in text consisting of numbers … that variant width appears to make the numbers jump around

    I believe the only fixed-width font currently in GS is Cochin … not my favorite … but keeps numbers in good alignment… try it!

    @};- MH
  • bajashbajash Member, PRO Posts: 215
    Sorry, I will explain what I mean by jumpy.

    I am measuring angle of the accelerometer. When it lays flat on the table, the numbers are still moving. The never settle.

    I need a way to have them settle at one number.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Is it decimal places that are still moving? If so you can use ceil or floor in your expression to round it off.
  • bajashbajash Member, PRO Posts: 215
    Hi John,

    I started doing that right before I read your post. Thank you for posting.
  • LumpAppsLumpApps Member Posts: 2,881
    Just a wild guess but does it help when you align the text to the left?
    That way only the right side of the text is jumpy and you will be able to read the output a little better.
    I'm on my iPhone so I can't check.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Are you saying that the game.accelerometer.X/Y/Z values are changing even when you have your device flat on a surface? I just did a test and found the same thing.

    Comments, anyone?

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

  • bajashbajash Member, PRO Posts: 215
    Yes tatiang, I do not know if the problem lies with GS or the device's internal accelerometer.
    This makes it impossible for accuracy.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    it may just be the accelerometer is super sensitive and never settles down. I would recommend floor or ceil to just hid those small variables in the decimal places.
Sign In or Register to comment.