Gamecenter point format

DoguzDoguz Member Posts: 500
Hi, I have a real attribute value of - for example - 4.6 That is a score that I want to post to gamecenter. We have a few different format options to choose for the score format type.

If I choose 'Integer' it makes it 4
If I choose 'Fixed Point - To 1 Decimal' it makes it 0.4

Has anyone had this problem before.

Answers

  • DoguzDoguz Member Posts: 500
    OK. Had an epiphany. Seems that in order to get a score of 4.6 into game centre you do need to use 'Fixed Point - To 1 Decimal' but you have to throw at it an attribute with a value of 46.

    So what I do now is times my score by 10 before I post to game center. Easy when you know the ins and outs. Just threw me for a day or two.
  • joshiwujoshiwu Member Posts: 207
    abs(x) function
  • DoguzDoguz Member Posts: 500
    Thanks @joshiwu but your reply doesn't 'explain' a single thing. Perhaps you could elaborate, explain the function and what it does and show a sample rule.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Abs(x) returns the absoluite value of a number, turning negative numbers like -2.4 into positive numbers i.e. 2.4 etc. If you're passing through a positive number it will return the same number without any change.
Sign In or Register to comment.