How do I Associate 3 Letter Names with High scores

Get help using Construct 2

Post » Tue Apr 12, 2016 11:36 am

MrBadAtThis wrote: I followed the code exactly. My Names erase every time i get to the high score board are replaced...

almost :D

On start of "Score" Layout you save Array to "hiScore" LocalStorage...
On pressed "Space" you save Array to "hiscore" LocalStorage...

"hiScore""hiscore"

also you need loop..Array for each X element...to set curX(on "Start" Layout)

version 0.41.capx
Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Tue Apr 12, 2016 2:17 pm

korbaach wrote:
MrBadAtThis wrote: I followed the code exactly. My Names erase every time i get to the high score board are replaced...

almost :D

On start of "Score" Layout you save Array to "hiScore" LocalStorage...
On pressed "Space" you save Array to "hiscore" LocalStorage...

"hiScore""hiscore"

also you need loop..Array for each X element...to set curX(on "Start" Layout)

version 0.41.capx


I must of missed that haha. and thanks for the fixed Capx Weirdly enough though even the one you sent me is changing all of the names to 0.
B
9
S
4
G
2
Posts: 39
Reputation: 1,805

Post » Tue Apr 12, 2016 2:20 pm

Woop never mind I managed to fix it by clearing the array and starting the game over once cleared
B
9
S
4
G
2
Posts: 39
Reputation: 1,805

Post » Tue Apr 12, 2016 10:34 pm

korbaach wrote:
MrBadAtThis wrote: I followed the code exactly. My Names erase every time i get to the high score board are replaced...

almost :D

On start of "Score" Layout you save Array to "hiScore" LocalStorage...
On pressed "Space" you save Array to "hiscore" LocalStorage...

"hiScore""hiscore"

also you need loop..Array for each X element...to set curX(on "Start" Layout)

version 0.41.capx


Hey there so everything seems to be going swimmingly minus one thing say top score is 500, and second score is 200 If someone scores 300-400 it does not prompt them for their name
B
9
S
4
G
2
Posts: 39
Reputation: 1,805

Previous

Return to How do I....?

Who is online

Users browsing this forum: alextro, Ryan Kocourek and 6 guests