Google Play Scores

Get help using Construct 2

Post » Fri Mar 13, 2015 11:31 pm

Hello everybody!
I have a question:
When you use "Google Play" item for a "text item" to show scores and others, there is an option:
GooglePlay.HiScoreAt(index)
WTF index means?

I send my score to google play correctly, becose i can see my best rank "Googleplay.MyBestRank", but i want to see my lastest sended score. I mean, THIS game, the last game i played.

Thank you so much, and sorry for my bad english.
Play my games on www.pocketgames.es
B
13
S
3
Posts: 45
Reputation: 819

Post » Sun Mar 15, 2015 5:01 pm

its a list of scores, the index meaning the position in the array. (the list)

the google on hi scores loops through it.

on list received
set text GoogleHiSchoreAt(loopindex)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Sun Mar 15, 2015 7:23 pm

what i do to put the scores on the events?
B
10
S
2
G
1
Posts: 35
Reputation: 691

Post » Mon Mar 16, 2015 11:06 am

Thanks for response.
How can i do to see the latest score sended?
Play my games on www.pocketgames.es
B
13
S
3
Posts: 45
Reputation: 819

Post » Mon Mar 16, 2015 11:09 am

What do you mean with latest score ?
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Mon Mar 16, 2015 11:58 am

For example,
in my game, when i loose i can submit my score to googleplay. For example 10.000 points
Next time i play my score is 5.000(for example) and it is submited.

So, i would like to see at the "game over" Screen:

Current score: 5.000
Latest score: 10.000

Sorry for my english
Play my games on www.pocketgames.es
B
13
S
3
Posts: 45
Reputation: 819

Post » Mon Mar 16, 2015 12:47 pm

I don't think there is a "latest" score overview, from the manual page you have these options:

HiScoreMyBest
HiScoreMyFormattedBest
HiScoreMyBestRank
HiScoreMyBestFormattedRank
HiScoreMyBestTag

https://www.scirra.com/manual/175/google-play

bottom of the page.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Mon Mar 16, 2015 10:27 pm

Thank you.
is loopindex the only parameter i can use?
Play my games on www.pocketgames.es
B
13
S
3
Posts: 45
Reputation: 819

Post » Tue Mar 17, 2015 10:40 am

loopindex is the number of the current loop.

Like, a for each runs 10 objects, first object loopindex being 0, the second 1, the third 2 etc etc etc
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Tue Mar 17, 2015 12:58 pm

Thank u
Play my games on www.pocketgames.es
B
13
S
3
Posts: 45
Reputation: 819

Next

Return to How do I....?

Who is online

Users browsing this forum: mekonbekon and 8 guests