Find value of highScore var in browser?

Get help using Construct 2

Post » Wed Feb 20, 2013 11:28 pm

Hello

Is it possible to find one of the variables from a game with the browser? I want to share a high score from a page by capturing it from the end game screen, but I can't seem to find a way to do it.

Thanks

Edit: I noticed I can log vars with this plugin:

http://www.scirra.com/forum/log-text-Objects-to-chrome-console_topic47859_page1.html

Can I not alert them somehow, just as easily?Phill2013-02-21 00:38:26
B
5
Posts: 17
Reputation: 459

Post » Thu Feb 21, 2013 2:29 am

Hello Phill. I'm not sure if you want to just show the score, make a highscore table, or what not. when you say share it, in what format do you mean?

A screenshot is simple for showing someone; if you want to use it in another game, you might want to consider the Dictionary object, which can export a JSON file, which can be subsequently loaded into another Dictionary object if needed.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Thu Feb 21, 2013 2:51 am

Basically I just want to grab a single score number, so say it's 56. I will then use that number to generate an image for a user to share, so if their score was less than 60, they get the image for that

Thanks
B
5
Posts: 17
Reputation: 459

Post » Thu Feb 21, 2013 8:03 am

I take it there's no easy way to do that?
B
5
Posts: 17
Reputation: 459

Post » Thu Feb 21, 2013 9:47 am

Where are many ways for that, but you miss some information.

https://www.scirra.com/tutorials/266/webstorage-how-to-save-ingame-information -> This should explain you one way
B
15
S
6
G
6
Posts: 512
Reputation: 5,550


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests