Discuss Scratch

Xyyzzz
Scratcher
79 posts

High score username

Hi guys.

I am trying to make my game display the player's name that got the top score. So far, I got it to check if the player beat the top score, make their username process through the selected allowed characters, and if so, individually add each character as a new item in a list. The problem is, I can't make it so that their name displays without having to go through numerical conversions.

Project: http://scratch.mit.edu/projects/14377135/
The high scores stuff is in Stage. You can change the name to your own to test the scripts.

Thanks in advance!
fyromaniac1
Scratcher
100+ posts

High score username

I think I can help…

To make a highscore:
whenclickedforeverifpoints>☁highscorethenset☁high scoretopoints

To make a highscore that shows username:
Make a new cloud variable
whenclickedforeverifpoints>☁highscorethensetwinning usertousernameI'm not sure if this works, but It used to.

I really hope this helps!
Kayah
Scratcher
42 posts

High score username

fyromaniac1 wrote:

I think I can help…

To make a highscore:
whenclickedforeverifpoints>☁highscorethenset☁high scoretopoints

To make a highscore that shows username:
Make a new cloud variable
whenclickedforeverifpoints>☁highscorethensetwinning usertousernameI'm not sure if this works, but It used to.

I really hope this helps!
or like this:
whenclickedforeverifscore>cloudhighscorethensetcloud high scoretoscoresetcloud winning usertousername

Last edited by Kayah (Dec. 3, 2013 12:15:23)

Sonickyle
Scratcher
1000+ posts

High score username

Kayah wrote:

fyromaniac1 wrote:

I think I can help…

To make a highscore:
whenclickedforeverifpoints>☁highscorethenset☁high scoretopoints

To make a highscore that shows username:
Make a new cloud variable
whenclickedforeverifpoints>☁highscorethensetwinning usertousernameI'm not sure if this works, but It used to.

I really hope this helps!
or like this:
whenclickedforeverifscore>cloudhighscorethensetcloud high scoretoscoresetcloud winning usertousername
Cloud variables don't support strings, so that won't work. You have to convert the username into numbers.
starixa
Scratcher
4 posts

High score username

thanks that helped alout……
The_Grits
Scratcher
1000+ posts

High score username

Sonickyle wrote:

Kayah wrote:

fyromaniac1 wrote:

I think I can help…

To make a highscore:
whenclickedforeverifpoints>☁highscorethenset☁high scoretopoints

To make a highscore that shows username:
Make a new cloud variable
whenclickedforeverifpoints>☁highscorethensetwinning usertousernameI'm not sure if this works, but It used to.

I really hope this helps!
or like this:
whenclickedforeverifscore>cloudhighscorethensetcloud high scoretoscoresetcloud winning usertousername
Cloud variables don't support strings, so that won't work. You have to convert the username into numbers.
Yes, you will have to convert the username to numbers.
If you need a converter, I have made one that you can use.
Fyromaniac1's script for the highscore is excellent.
If you need more help just ask!
The_Grits
Xyyzzz
Scratcher
79 posts

High score username

Thanks for the encoding script, grits. Do you also know how to decode it into letters? I may be able to make it but the problem is I don't know how to make the script read two specific digits in the same variable. I tried doing ‘i’ and ‘i + 1’ but it doesn't seem to work..

The_Grits
Scratcher
1000+ posts

High score username

From numbers to letters? I could make an update in a couple of days if you are willing to wait….
ZippyZak
Scratcher
29 posts

High score username

Try converting letters to numbers. like 2-digit numbers like 01=a and 11=k. and have it re-converted. If you need help with it I can make a project demonstrating it. But don't use it for a chat-room or anything.
Xyyzzz
Scratcher
79 posts

High score username

It's all right, I figured it out.
hseah
New Scratcher
1 post

High score username

good luck
The_Grits
Scratcher
1000+ posts

High score username

Xyyzzz wrote:

It's all right, I figured it out.
Great!

Powered by DjangoBB