Help me adding a high score to this game and saving it.

Get help using Construct 2

Post » Fri Mar 10, 2017 7:45 am

Can someone please add a high score function to this game and storing it locally on the device.I have tried amny ways but got nothing,So if you please modify this capx and give it to me It will be very helpfull and i will add your name to my game's credits :) :lol: .

Capx : https://www.dropbox.com/s/94vnrctmfxast1v/autorunner.capx?dl=0
B
12
S
4
Posts: 32
Reputation: 1,033

Post » Fri Mar 10, 2017 9:58 am

@rafay23

Did you try adding the events I explicitly stated in your other thread?

how-do-i-save-highscore-on-the-device-in-a-auto-runner-g_p1106187?#p11061879

You didn't reply so I don't think even know if you read it.
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 468
Reputation: 6,866

Post » Fri Mar 10, 2017 11:38 am

I have tried it . But the big reason is "I AM TRYING TO DO IT IN THE AUTO RUNNER TEMPLATE THAT COMES WITH C2 AND I DON'T KNOW WHICH IS THE SCORE VARIABLE ! " . If you please download that capx and modify and then give me i will be very happy and thankfull
B
12
S
4
Posts: 32
Reputation: 1,033

Post » Fri Mar 10, 2017 11:56 am

They use TotalDistance for scoring in that example.

Add the Scirra Arcade object to your layout (second object) and add this line to the event:

Image


You will need to upload to the scirra arcade and create a leader board for the game and then it will submit that TotalDistance to the leader board at the end of the game.

If you want to Save it locally while you play use the Save and Load commands.

Image
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Fri Mar 10, 2017 12:23 pm

Thanks @lamar! . You are in my credits list! :)
B
12
S
4
Posts: 32
Reputation: 1,033

Post » Fri Mar 10, 2017 1:07 pm

rafay123 wrote:Thanks @lamar! . You are in my credits list! :)


Thanks- what I would really like is for you to study those commands so you understand them completely and that way you can help someone when they have that question in the forum.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825


Return to How do I....?

Who is online

Users browsing this forum: jogindarpradeep, matriax and 17 guests