You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on May 30, 2021. It is now read-only.
Hmm... We couldn't send actual messages, but if you wanted to send a message to the user who is currently using the script, it would be possible to store a cookie (that's an array), which could contain all the messages we want to send. Then the orange message counter (in the navbar) could be changed by the script to add on any messages we want to send, and then display those messages (from the cookie) once the user goes to their messages page. (Then clear the array of messages, because messages always disappear when the message page is viewed.)
It would be a pain the in butt to make and would only work for sending messages to the user who is using the script, but it would work...
Oh, and I think MSU uses localstorage, not cookies. But it's basically the same thing (only not at all).
If you want to make something like a chat you may want to use SockJS.
An example of a script that uses it (we would obviously need our own server and we would also need to adapt it to Scratch): https://fungustime.pw/tastyplug/tastyplug.js
Wow, just the thought of having a built-in chat for scratch makes me think of how awesome this can get! Maybe it would even be possible to make rooms that you invite people to, like for a collab, or a chat with a friend. If we started working on this it would completely revolutionize scratch!
I've thought about making a chat for Scratch with this some time ago, but I don't know Node.js and can't find a good place to learn how to use it D: I hope you guys know how to use it :)
Activity
PullJosh commentedon Jan 19, 2015
Hmm... We couldn't send actual messages, but if you wanted to send a message to the user who is currently using the script, it would be possible to store a cookie (that's an array), which could contain all the messages we want to send. Then the orange message counter (in the navbar) could be changed by the script to add on any messages we want to send, and then display those messages (from the cookie) once the user goes to their messages page. (Then clear the array of messages, because messages always disappear when the message page is viewed.)
It would be a pain the in butt to make and would only work for sending messages to the user who is using the script, but it would work...
Oh, and I think MSU uses localstorage, not cookies. But it's basically the same thing (only not at all).
Yoda3D commentedon Jan 21, 2015
Ok, I was hoping that there was some sort of ajax send request or something :P
PullJosh commentedon Jan 23, 2015
Not that I'm aware of.
Felizolinha commentedon Jan 28, 2015
If you want to make something like a chat you may want to use SockJS.
An example of a script that uses it (we would obviously need our own server and we would also need to adapt it to Scratch):
https://fungustime.pw/tastyplug/tastyplug.js
Yoda3D commentedon Jan 28, 2015
Wow, just the thought of having a built-in chat for scratch makes me think of how awesome this can get! Maybe it would even be possible to make rooms that you invite people to, like for a collab, or a chat with a friend. If we started working on this it would completely revolutionize scratch!
Felizolinha commentedon Jan 28, 2015
I've thought about making a chat for Scratch with this some time ago, but I don't know Node.js and can't find a good place to learn how to use it D: I hope you guys know how to use it :)
bates64 commentedon Jan 29, 2015
Heh heh, I made a Node.js chatroom once- and it still works. Maybe we could use that (google hangouts style overlay?)
Yoda3D commentedon Jan 29, 2015
Could we see your script?
PullJosh commentedon Jan 31, 2015
Yes please! I've been trying to learn node myself...
(For a completely unrelated project.)