Discuss Scratch

MintyUsesScratch
Scratcher
11 posts

how do I make a cloud player say their username?

i recently followed griffpatch's tutorial, for now i'm working on a test but i'm not sure how i would make the players say their own username, can anyone help?

redirect me to another post with the same question and solution if possible, thanks!
IGABMS
Scratcher
100+ posts

how do I make a cloud player say their username?

Hi,

The answer will probably depend on how you set up your project! Please share the link
MintyUsesScratch
Scratcher
11 posts

how do I make a cloud player say their username?

IGABMS wrote:

Hi,

The answer will probably depend on how you set up your project! Please share the link
alright, here's the link

https://scratch.mit.edu/projects/1080929896/
mmhmBeans
Scratcher
500+ posts

how do I make a cloud player say their username?

You can encode their username and store in in the cloud variable. I have a guide on encoding here:
https://scratch.mit.edu/projects/1080268870/editor/

edit: you don't need to credit me for the encoding if you use it, it's really common and i haven't invented it

Last edited by mmhmBeans (Oct. 15, 2024 19:33:27)

michaeljackson1365
Scratcher
1000+ posts

how do I make a cloud player say their username?

You can take a person's encode-decode system as long as you give them credit.. I'm thinking of making my own encode-decode system. I will first use it in one of my games.

Last edited by michaeljackson1365 (Oct. 15, 2024 19:14:57)

MintyUsesScratch
Scratcher
11 posts

how do I make a cloud player say their username?

mmhmBeans wrote:

You can encode their username and store in in the cloud variable. I have a guide on encoding here:
https://scratch.mit.edu/projects/1080268870/editor/

edit: you don't need to credit me for the encoding if you use it, it's really common and i haven't invented it
when the guide says to remove the “ s ”, do I set it to an empty value or 0?

edit : by the way thanks a ton, this really helps

Last edited by MintyUsesScratch (Oct. 15, 2024 22:29:34)

Sedef-Eercc
Scratcher
100+ posts

how do I make a cloud player say their username?

MintyUsesScratch wrote:

i recently followed griffpatch's tutorial, for now i'm working on a test but i'm not sure how i would make the players say their own username, can anyone help?

redirect me to another post with the same question and solution if possible, thanks!


I think like dis :3

say (username)
Sedef-Eercc
Scratcher
100+ posts

how do I make a cloud player say their username?

Sedef-Eercc wrote:

MintyUsesScratch wrote:

i recently followed griffpatch's tutorial, for now i'm working on a test but i'm not sure how i would make the players say their own username, can anyone help?

redirect me to another post with the same question and solution if possible, thanks!


I think like dis :3

say (username)



Hope dis helps ;3
MintyUsesScratch
Scratcher
11 posts

how do I make a cloud player say their username?

Sedef-Eercc wrote:

MintyUsesScratch wrote:

i recently followed griffpatch's tutorial, for now i'm working on a test but i'm not sure how i would make the players say their own username, can anyone help?

redirect me to another post with the same question and solution if possible, thanks!


I think like dis :3

say (username)
what I meant was making the other players you see in a multiplayer game say their own name
lordbasic
Scratcher
20 posts

how do I make a cloud player say their username?

MintyUsesScratch wrote:

Sedef-Eercc wrote:

MintyUsesScratch wrote:

i recently followed griffpatch's tutorial, for now i'm working on a test but i'm not sure how i would make the players say their own username, can anyone help?

redirect me to another post with the same question and solution if possible, thanks!


I think like dis :3

say (username)
what I meant was making the other players you see in a multiplayer game say their own name
I think when you make a clone (the cloud player) then encode the username, then decode the username, then set the decoded name to a for this sprite only variable, then make the clone say that one.
As shown below
when green flag clicked
Decode username
set [username v] to (decoded username)
create clone of [cloud code sprite v]
when I start as a clone
set [clone username (this sprite only)v] to (username)
forever
say (clone username this sprite only)
end

Powered by DjangoBB