TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How do I convert game time (seconds) to int64 for Game Centre?
Pages:
1
2
How do I convert game time (seconds) to int64 for Game Centre?
colburt187
Posts: 2416
August 12, 2016, 10:45:13 am
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
August 12, 2016, 11:19:52 am
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
August 12, 2016, 11:52:56 am
Yeah exactly, see attached
Northfield82
Posts: 649
August 12, 2016, 12:19:50 pm
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
August 12, 2016, 12:24:10 pm
Are you sure about this 64bit thing? I just submitted my time attribute and it worked.
Northfield82
Posts: 649
August 12, 2016, 01:28:37 pm
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!
Pages:
1
2