Discuss Scratch

codebunga
Scratcher
19 posts

How to make a LIVE chat on Scratch?

I am making a poll,and I want to make a live chat. can you help meh?
--Dovahkiin--
Scratcher
100+ posts

How to make a LIVE chat on Scratch?

I can help you. But being as live chats are not allowed I will not.
I would suggest not making one being as you could get banned (I think)
Nin100GameronScratch
Scratcher
100+ posts

How to make a LIVE chat on Scratch?

Hello!

According to the Community Guidelines, free chat is not allowed on Scratch. I have seen a few projects that have pre-set messages, which are the only thing people are allowed to say. So to answer your question, Quick Chat is allowed, but not Free Chat.
codebunga
Scratcher
19 posts

How to make a LIVE chat on Scratch?

--Dovahkiin-- wrote:

I can help you. But being as live chats are not allowed I will not.
I would suggest not making one being as you could get banned (I think)
okay. but then how do you make a chat with pre-set messages?

Last edited by codebunga (Jan. 4, 2022 23:09:54)

MookyE
Scratcher
100+ posts

How to make a LIVE chat on Scratch?

If you already have an online game (griffpatch tutorials are a good way to start if you dont) then just add a variable for what the player is saying (add selection button for the chat messages) and include that variable in the encoded information. You can the decode it in game and make the character say it on other players screens
codebunga
Scratcher
19 posts

How to make a LIVE chat on Scratch?

MookyE wrote:

If you already have an online game (griffpatch tutorials are a good way to start if you dont) then just add a variable for what the player is saying (add selection button for the chat messages) and include that variable in the encoded information. You can the decode it in game and make the character say it on other players screens
??? I dont get it

Last edited by codebunga (Jan. 4, 2022 23:29:54)

D-ScratchNinja
Scratcher
1000+ posts

How to make a LIVE chat on Scratch?

codebunga wrote:

??? I dont get it
Basically, cloud variables can only store number digits, not letters or symbols, so you have to convert letters and symbols into numbers for them to be transmitted. This isn't so easy the first time you do it, but you might be able to find some tutorials on encoding and transmitting data. You can use this system to show pre-made messages to your project users and the username of the message sender.

Just be sure not to allow free communication through your project, as that can be a moderation issue. Just use small pre-made phrases if you plan on adding a chat system.


Another way to set up live chat is just by sending a chat message “ID”. Let's say “hello” is the first chat message. If someone wanted to say hello, then the project would send a “1” to the cloud variable because it's the first chat message option. This will appear on everyone else's screen. If “how are you” is the second, then its ID would be 2. And when someone says that, the cloud variable would be set to “2”.

That's a very simple chat setup but doesn't allow for username storage, though it's a start, and I recommend using it if you haven't really played with encoding yet. I even made a “choice chat” project at some point, and it used a system like this.
minecrafter6548
Scratcher
45 posts

How to make a LIVE chat on Scratch?

i made one of those cloud platformer chat engines. you can go to my profile (in signature) and find my chat engine. it's not too far down, but it might not work.
helloworldbyeworld
Scratcher
1000+ posts

How to make a LIVE chat on Scratch?

D-ScratchNinja wrote:

codebunga wrote:

??? I dont get it
Basically, cloud variables can only store number digits, not letters or symbols, so you have to convert letters and symbols into numbers for them to be transmitted. This isn't so easy the first time you do it, but you might be able to find some tutorials on encoding and transmitting data. You can use this system to show pre-made messages to your project users and the username of the message sender.

Just be sure not to allow free communication through your project, as that can be a moderation issue. Just use small pre-made phrases if you plan on adding a chat system.


Another way to set up live chat is just by sending a chat message “ID”. Let's say “hello” is the first chat message. If someone wanted to say hello, then the project would send a “1” to the cloud variable because it's the first chat message option. This will appear on everyone else's screen. If “how are you” is the second, then its ID would be 2. And when someone says that, the cloud variable would be set to “2”.

That's a very simple chat setup but doesn't allow for username storage, though it's a start, and I recommend using it if you haven't really played with encoding yet. I even made a “choice chat” project at some point, and it used a system like this.
To add on, instead of setting a cloud variable to the id, you could add it to a cloud variable. That way, a chat history could be created, though it doesn’t have usernames.
codebunga
Scratcher
19 posts

How to make a LIVE chat on Scratch?

can you guys show in blocks?
———————————————
-codebunga
Please vote for my next project here: https://scratch.mit.edu/projects/623915606
dj_greener
Scratcher
500+ posts

How to make a LIVE chat on Scratch?

Wait!
You need
cloudlist
thats not added!
Also what if they say inappropriate things!
If you create a filter to inappropriate things, don't forget that needs to be in every language
dj_greener
Scratcher
500+ posts

How to make a LIVE chat on Scratch?

Also a cloud variable only stores numbers.
sussiest
New Scratcher
4 posts

How to make a LIVE chat on Scratch?

dj_greener wrote:

Also a cloud variable only stores numbers.
I agree
supernavo
Scratcher
1000+ posts

How to make a LIVE chat on Scratch?

Here's some mockup I guess:
encoded username00msg id
It's not free so no filter needed, you can't make one anyway. Detect new messages, then add to list.
Mooshroom-09
Scratcher
15 posts

How to make a LIVE chat on Scratch?

codebunga wrote:

I am making a poll,and I want to make a live chat. can you help meh?

First, you will need a whitelist- a list of words that you can only message. You cannot use blacklists to filter messages, as there are obvious ways to go around them by looking inside.

After that, figure out a way to convert those words into numbers, so you can put them into cloud variables.

As far as I know, that is all the information you need.

Scratch On!

Powered by DjangoBB