How do I convert game time (seconds) to int64 for Game Centre?

colburt187

  • *
  • Posts: 2416
Yes, the first screenshot is me submitting the score to game centre, and the second shot is what the score looks like in game centre.

its the mobile version of this game http://www.stencyl.com/game/play/27884

Hectate

  • *
  • Posts: 4643
Never been into GameCenter; is it possible that when setting up the game you can set the field to assume time?
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

colburt187

  • *
  • Posts: 2416
Yeah exactly, see attached

Northfield82

  • Posts: 649
Yes. The confusing part (for me anyway) is because I'm submitting a time rather than a score, this has to be done via a 64bit signed integer which is then converted back into a time at the other end.

colburt187

  • *
  • Posts: 2416
Are you sure about this 64bit thing? I just submitted my time attribute and it worked.

Northfield82

  • Posts: 649
I think I've totally been over thinking this one!!  I've attached a screenshot of where it says about this but i think it's probably just saying don't try and submit your time as "00:02:22" or "00.02.22" or any other weird way, but just submit it in seconds as a standard integer, i.e 142

Duh!