Discuss Scratch

Mattiino
Scratcher
34 posts

Im having a problem...




I added some images, as you can see Points is clearly > of world record… in the second image: the top one (8 by mattiino) is the wr and the second one is the points, idk why it says false
deck26
Scratcher
1000+ posts

Im having a problem...

It's always better to share the project than script images with no context. My guess is you're using clones and local variables so you're not comparing what you think you're comparing.
MisterPoo_Education
Scratcher
13 posts

Im having a problem...

Mattiino wrote:




I added some images, as you can see Points is clearly > of world record… in the second image: the top one (8 by mattiino) is the wr and the second one is the points, idk why it says false
uploas the projct
DanglyLegs
Scratcher
100+ posts

Im having a problem...

Because your world record variable has text inside of it, it's not going to calculate the inequality correctly. Additionally, if your world record is a cloud variable, you can't include text in it–just numbers. To fix the issue, remove the by username part of the world record.

Hope this helps.
Mattiino
Scratcher
34 posts

Im having a problem...

DanglyLegs wrote:

Because your world record variable has text inside of it, it's not going to calculate the inequality correctly. Additionally, if your world record is a cloud variable, you can't include text in it–just numbers. To fix the issue, remove the by username part of the world record.

Hope this helps.
Oh thanks, i didnt realize i added by username to the world record variable, thanks
Mattiino
Scratcher
34 posts

Im having a problem...

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
ThE-_-pEnGuIn
Scratcher
57 posts

Im having a problem...

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Mattiino
Scratcher
34 posts

Im having a problem...

ThE-_-pEnGuIn wrote:

Cita
BTW heres the project link: https://scratch.mit.edu/projects/1208828768/
Mattiino
Scratcher
34 posts

Im having a problem...

ThE-_-pEnGuIn wrote:

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Isnt that method a bad workaround?, i just want to say it without making a TOWER of scratch code blocks… sorry if im asking too much…

Last edited by Mattiino (Sept. 3, 2025 16:30:22)

ThE-_-pEnGuIn
Scratcher
57 posts

Im having a problem...

Mattiino wrote:

ThE-_-pEnGuIn wrote:

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Isnt that method a bad workaround?, i just want to say it without making a TOWER of scratch code blocks… sorry if im asking too much…
not nearly as long as it sounds, and that's as far as I can help you, although in the project the by usr thing seemed to work, but it changed while my score was much lower.
ThE-_-pEnGuIn
Scratcher
57 posts

Im having a problem...

oh, nevermind, it did reset

Mattiino wrote:

ThE-_-pEnGuIn wrote:

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Isnt that method a bad workaround?, i just want to say it without making a TOWER of scratch code blocks… sorry if im asking too much…
and what do you mea by “bad workaround”? it is allowed if that's what you mean, its not lengthy, its fast, although it does use 2 variables
Mattiino
Scratcher
34 posts

Im having a problem...

ThE-_-pEnGuIn wrote:

oh, nevermind, it did reset

Mattiino wrote:

ThE-_-pEnGuIn wrote:

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Isnt that method a bad workaround?, i just want to say it without making a TOWER of scratch code blocks… sorry if im asking too much…
and what do you mea by “bad workaround”? it is allowed if that's what you mean, its not lengthy, its fast, although it does use 2 variables
Okay, i'll try it. I'll reply you if i have further questions…
Mattiino
Scratcher
34 posts

Im having a problem...

ThE-_-pEnGuIn wrote:

oh, nevermind, it did reset

Mattiino wrote:

ThE-_-pEnGuIn wrote:

Mattiino wrote:

But. how would i compare the points to the world record var and also saying “By username” without making another var for the wr beater username?
you can convert it into numbers by making 2 lists (one with all the characters, the other with TWO DIGIT numbers (or 3 digits depending on how many chars you want)), then use a “”for“” loop to convert it into numbers and then you can convert it back into letters. if you want you can also have 2 digits you don't use as seperstor digits to put the usr and the score in the same var
Isnt that method a bad workaround?, i just want to say it without making a TOWER of scratch code blocks… sorry if im asking too much…
and what do you mea by “bad workaround”? it is allowed if that's what you mean, its not lengthy, its fast, although it does use 2 variables
Can you make an actual project or the code in the scratch style, sorry if i dont understand a lot without an example.

Last edited by Mattiino (Sept. 3, 2025 17:30:40)

Powered by DjangoBB