Online Scoreboard

For questions about using Classic.

Post » Thu May 15, 2014 12:57 pm

Hello :)
i have a little question to You about the online Leaderboards
is this possible to Send from Construct the score ?
for example i've got 10,000 Points and the game sending it to the side for example ?

and the second question , how to save the top scores ?
i know it's a basic question but i have no idea how to do it
i'really don't know that you are understand me now but i try to explain :

i have 2 fields on screen : SCORE and TOP SCORE ,
and how to do that the max score will be the new top score ?
for example my previous best was 300 and now it's 700
how to tell construct to do it ?

and final ask , where to save the data of score , achivements and global variables
if my hero found 10 000 gold i want it back when i close the game and return

wow a lot of things i have written
i will be very glad if you can help me

greetings
Daniel
B
5
S
1
Posts: 10
Reputation: 401

Post » Thu May 15, 2014 1:09 pm

Absolutely. There are many 3rd party leaderboards you can use. I suggest trying Clay.IO. Sign up at their website. They have a Plugin for Construct2 and instructions. It's pretty easy to implement.

There is a tutorial posted here:

https://www.scirra.com/tutorials/348/integrating-leaderboards-achievements-and-social-features
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu May 15, 2014 1:10 pm

Thanks for the reply , but i need it for Construct Classic :P
B
5
S
1
Posts: 10
Reputation: 401

Post » Thu May 15, 2014 1:44 pm

For saving your scores , the INI is your best bet . I included an example , open the ini file with notepad and take a look at it , also the cap will help. I have included the link to the old wiki , there is still some info on it that might be of help .

http://sourceforge.net/apps/mediawiki/c ... =Main_Page

Will try to help when I have more time .
You do not have the required permissions to view the files attached to this post.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Thu May 15, 2014 1:58 pm

Oh , thank you so much ;) it's very good
B
5
S
1
Posts: 10
Reputation: 401

Post » Thu May 15, 2014 2:08 pm

"i have 2 fields on screen : SCORE and TOP SCORE ,
and how to do that the max score will be the new top score ?
for example my previous best was 300 and now it's 700
how to tell construct to do it ?"

Condition > global(score) is greater than global(topscore) action > set global(topscore) to global(score)
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Thu May 15, 2014 4:33 pm

Thank You a lot , it helps me so much ;)

i will be very glad if somebody could tell me how to do online leaderboards :P
B
5
S
1
Posts: 10
Reputation: 401

Post » Wed May 21, 2014 12:02 pm

doing online scores means you'll probably also need to mess with PHP:

viewtopic.php?f=164&t=53638&p=459206

You might have to work with PHP + MySQL to do a secured method of storing and retrieving scores, but you could also just use PHP to set the contents of a text file on the server, then download the text file with the Construct Classic HTML object :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,201
Reputation: 19,539


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests