Need someone to Help me use webstorage because I'm lame

Just started using Construct 2? Post your questions here

Post » Tue Apr 15, 2014 5:29 am

@Vuuv , you don't need to, he got help & doesn't have any money :D
But yes, it is a ridicoulus amount.
- Conti
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
24
S
10
G
7
Posts: 253
Reputation: 4,931

Post » Tue Apr 15, 2014 5:49 am

Ah ok so you helped him for free? :)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Tue Apr 22, 2014 6:01 pm

I've been trying to figure out this WebStorage thing all day but am not having any luck getting it to work either so I was wondering if anyone could help please?

I have a score working correctly on my game and I now just want it to remember your high score when you die and load it up next time you play to the right of your screen as your 'Best Score'.

I want it to update itself as well if you beat your previous best score (If anyone has played Spashy Fish, that's similar to what I'm trying to achieve here with the score/best score).

I'm sure it cannot be too difficult to do if you know your stuff but I just don't seem to be able to make it work despite following several tutorials on this site. :(

Any help would be greatly appreciated or a capx that I can refer to would be, franky, awesome!

Thanks
B
5
S
1
Posts: 13
Reputation: 501

Post » Tue Apr 22, 2014 6:45 pm

i have a capx
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Tue Apr 22, 2014 7:20 pm

Cool. Could you PM it to me or send me a link to download it please so that I can take a look?
B
5
S
1
Posts: 13
Reputation: 501

Post » Tue Apr 22, 2014 8:07 pm

[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Tue Apr 22, 2014 9:33 pm

Thank you. Apparently I need a newer version of Construct to open that file so I'll update with the latest beta release and have a look. :)
B
5
S
1
Posts: 13
Reputation: 501

Post » Tue Apr 22, 2014 9:38 pm

Ok your welcome
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Tue Apr 22, 2014 11:07 pm

Thanks again, woddakota but unfortunately the capx wouldn't work for me. :(

However I was able to see what you have done which helped. I also downloaded the other 2 samples in this thread and between the 3 of them I think I now have a good understanding of how webstores work.

The thing that still confuses me though is how to get the value from the 'Score' over to the 'Best Score' webstore when you die in the game? The game scores correctly now but I want it to remember your score when you die and also update that best score if you manage to beat it on another try... If anyone knows how to do that, please tell me!

Thank you.
B
5
S
1
Posts: 13
Reputation: 501

Post » Tue Apr 22, 2014 11:26 pm

welcome
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests