Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Encoder Highscore Problem
- PhirripSyrrip
- Scratcher
500+ posts
Encoder Highscore Problem
http://scratch.mit.edu/projects/11906193/
The idea is that if a user breaks the highscore (cloud variable: HS) then their username is saved as numbers (in cloud variable: HSU) and another sprite draws the user's name by decoding HSU and stamping the appropriate letters.
The problem is, that this doesn't work, and I have to manually set the highscore user. If you look at the cloud data log, you'll see that the most recent highscore did not reset the HSU variable. I manually reset it.
I have tried to fix it a bit, so you might see some perhaps unnecessary variables such as “user”, and “hgihscore”. Previously- the HSU never reset- you can see that in the Cloud data log. Instead it combined the previous user's name with the new user's name.
I believe the problem to lie in either sprite 11 (the encoder) or sprite 13 (the drawer). Sprite 12 (the endscreen) may be responsible but I doubt it.
I hope I've explained it clearly, if you need further explanation, please ask.
Thanks.
The idea is that if a user breaks the highscore (cloud variable: HS) then their username is saved as numbers (in cloud variable: HSU) and another sprite draws the user's name by decoding HSU and stamping the appropriate letters.
The problem is, that this doesn't work, and I have to manually set the highscore user. If you look at the cloud data log, you'll see that the most recent highscore did not reset the HSU variable. I manually reset it.
I have tried to fix it a bit, so you might see some perhaps unnecessary variables such as “user”, and “hgihscore”. Previously- the HSU never reset- you can see that in the Cloud data log. Instead it combined the previous user's name with the new user's name.
I believe the problem to lie in either sprite 11 (the encoder) or sprite 13 (the drawer). Sprite 12 (the endscreen) may be responsible but I doubt it.
I hope I've explained it clearly, if you need further explanation, please ask.
Thanks.
; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
- PhirripSyrrip
- Scratcher
500+ posts
Encoder Highscore Problem
It seems to be working now… closing.
; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
- Discussion Forums
- » Help with Scripts
- » Encoder Highscore Problem