Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I optimize this code?
- grizz_tbbs
-
46 posts
How can I optimize this code?
https://scratch.mit.edu/projects/896369918/
Ive been trying to make this faster but have the same results. How do I fix this?
Ive been trying to make this faster but have the same results. How do I fix this?
- han614698
-
1000+ posts
How can I optimize this code?
Note: You are not allowed to make a free chat engine under any circumstances, even with the translate filter you have. You are in danger of your project being removed.
The only way to make chat allowed is if you can choose from previously accepted phrases (somewhat like a multiple-choice response). There is no pairing of these, your entire message must be pre-added to the project.
__
Now, to answer your question:
One main way to make it faster is to edit this script:

You're doing this completely right, and I'm sure it works, but instead of updating the ‘☁Cloud’ variable, update a storage variable, and then set the ‘☁Cloud’ variable at the end, like this:

Remember, to change a cloud variable, you have to make a request, which takes time.
The only way to make chat allowed is if you can choose from previously accepted phrases (somewhat like a multiple-choice response). There is no pairing of these, your entire message must be pre-added to the project.
__
Now, to answer your question:
One main way to make it faster is to edit this script:

You're doing this completely right, and I'm sure it works, but instead of updating the ‘☁Cloud’ variable, update a storage variable, and then set the ‘☁Cloud’ variable at the end, like this:

Remember, to change a cloud variable, you have to make a request, which takes time.
- grizz_tbbs
-
46 posts
How can I optimize this code?
Note: You are not allowed to make a free chat engine under any circumstances, even with the translate filter you have. You are in danger of your project being removed.Is there any reason why it isnt allowed?
The only way to make chat allowed is if you can choose from previously accepted phrases (somewhat like a multiple-choice response). There is no pairing of these, your entire message must be pre-added to the project.
__
Now, to answer your question:
One main way to make it faster is to edit this script:
You're doing this completely right, and I'm sure it works, but instead of updating the ‘☁Cloud’ variable, update a storage variable, and then set the ‘☁Cloud’ variable at the end, like this:
Remember, to change a cloud variable, you have to make a request, which takes time.
- ExtraMental
-
100+ posts
How can I optimize this code?
https://scratch.mit.edu/projects/896369918/Well this project is not allowed because it is a chatroom (you can enter anything you wanna say, which means people can type in inappropriate things). So you should probably unshare the project.
Ive been trying to make this faster but have the same results. How do I fix this?
- Discussion Forums
- » Help with Scripts
-
» How can I optimize this code?