Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- fries09
- Scratcher
61 posts
scratchattach - A Scratch API wrapper (Python)
So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?
Hello.
<[My brain cells] < [-100]>
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
you can make online multiplayer games without this just aswell, that has been a thing for years. So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?
the limitation is just the data transfer, you can have 10 cloud variables per project with like 128 chars each when i remember it right. If you want an insignificant data / packet loss, you should have a cooldown of around 0.5-1 seconds per data transfer, so you can transfer like 1280 characters per second. Not taking into account the time for the request to the client, processing and connecting to the websocket
- Baidog_Studios
- Scratcher
5 posts
scratchattach - A Scratch API wrapper (Python)
With Scratchattach can you use voice recognition to implement into projects?
- god286
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
22000 views on this topic - wow!
I don't think that the loudness block is enough to get full voice recognition even with the power of Python.
If you want Scratch project to send voice to Python and then return text? With Scratchattach can you use voice recognition to implement into projects?
I don't think that the loudness block is enough to get full voice recognition even with the power of Python.
Here are some of my followers!
I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
not really. you cannot record voices, just the loudness/volume. you can obviously send that to a server, but i guess thats kinda useless. With Scratchattach can you use voice recognition to implement into projects?
edit: you could send NOTE data to your client and play that, tho well thats still not voice.
Last edited by -FreeEngines- (June 5, 2022 08:11:15)
- Baidog_Studios
- Scratcher
5 posts
scratchattach - A Scratch API wrapper (Python)
not really. you cannot record voices, just the loudness/volume. you can obviously send that to a server, but i guess thats kinda useless. With Scratchattach can you use voice recognition to implement into projects?
edit: you could send NOTE data to your client and play that, tho well thats still not voice.
Ok thank you!
- fluo1234
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
there are tons of online multiplayer games So I have a question, I already directly messaged TimMcCool, but would it hypothetically be possible to make online multiplayer games? Also, if so, what are the limitations?
A
do you need he- nvm
oksomething
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
I dont know about python Syntax errors but you might have a whitespace error there Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
So like is there something after the : die you make a new line etc? Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
- infintyrussia
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
So like is there something after the : die you make a new line etc? Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
No there are no empty spaces.
Here is some more of the code:
if request == “1”:
print(“saving”)
project = session.connect_project(project_id)
conn.set_var(“CoCloud-Broadcast”, “2”)
save = scratch3.get_var(project_id, “CoCloud-Send”
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
save_times = save_times + 1
if (save_times>5):
break
- Magic_kid12
- Scratcher
36 posts
scratchattach - A Scratch API wrapper (Python)
(long unnecessary quote removed by moderator - please don't spam)
And you did this? Mind blown!
And you did this? Mind blown!
Last edited by Paddle2See (June 9, 2022 16:48:50)
- fluo1234
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
whats the error Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
do you need he- nvm
oksomething
- CodingScratching
- Scratcher
8 posts
scratchattach - A Scratch API wrapper (Python)
uh can you make a project that connects scratch to python?
- Nigthmare_27
- Scratcher
37 posts
scratchattach - A Scratch API wrapper (Python)
(#604)Maybe try to remove the “” around the numbers?whats the error Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
The error is invalid syntax.
- sayguy120
- Scratcher
4 posts
scratchattach - A Scratch API wrapper (Python)
Can someone inform me about scratchattach?
- infintyrussia
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
(#604)Maybe try to remove the “” around the numbers?whats the error Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
The error is invalid syntax.
Still not working.
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
no that will do nothing. the “” around the number just uses them as strings(#604)Maybe try to remove the “” around the numbers?whats the error Why is this invalid syntax?
while scratch3.get_var(project_id, “CoCloud-Broadcast”) != “4” or scratch3.get_var(project_id, “CoCloud-Broadcast”) != “5”:
The error is invalid syntax.