Skip to content
Sign upLog in
← Back to Community

Scratch API

Profile icon
YouRenTan

Hi, I am a scratcher https://scratch.mit.edu/users/YouRenTan/ who is amused at people who knows how to use repl.it to host a server and change cloud variables. But when I came to repl.it,it looks so hard! Any ideas how to host a server, get scratch api and change cloud variables? =D

Voters
Profile icon
rephael74
Profile icon
LM2309
Profile icon
realTronsi
Profile icon
Leroy01010
Profile icon
YouRenTan
Comments
hotnewtop
Profile icon
Leroy01010

sadly scratch isn't a real programming language but i'll try helping you with scratch api.(i'll look for a few answers)
(press reply to reply)

Profile icon
Coder100

Scratch: Cloud Variable
Everyone else: Database

May I recommend you:
https://firebase.google.com
or
https://mongodb.com

Anyways, either choice, there is a steep learning curve. You are better off learning more programming before trying to use a 'cloud variable'

Profile icon
SixBeeps

I believe it is against Scratch's TOS to change cloud variables on a Scratch project like that.

Profile icon
CodeLongAndPros

Uh that’s not possible

Profile icon
Whacko

I'm very sorry, but no, Scratch is not a programming language. Although it does use the HTML <canvas> element. You can try inspecting the code and find the file with the code for the canvas, although I doubt it will work.

Profile icon
Kruffer

If you're still active, I can show you the ropes of changing cloud variables with api using Python.

Profile icon
QuantumCodes

Do u know python/js? It will be helpful. I know how to do in python

Profile icon
LM2309

I'm on scratch too!

Profile icon
JonDoeBeep

No, but to start learning html, css, js, you can use freecodecamp.org
Im not sure that blockly is supported on repl.it though

Profile icon
pradg73

I see many people saying scratch isn't a programming language. don't be fooled by it's cute exterior and target audience. It's very sophisticated. someone mentioned griffpatch. His programs are insane. peace

Profile icon
realTronsi

I'd disagree with

@Leroy01010
here, Scratch does still count as a language, just a very low level and basic one. The transition from Scratch to a commercially viable language however is a big jump.

I've used Scratch as a kid before (I mean who hasn't) and it's a great tool for kids to learn basic syntax and structures of code, but unfortunately things such as cloud variables are not a thing in the coding world.

Repl.it does not support Scratch, but if you're looking to host servers (Which I'm assuming you're talking about backend, but correct me if I'm wrong) then NodeJS or python is a good start.

Profile icon
Leroy01010
Profile icon
Leroy01010

cloud vars are a thing

@realTronsi

Profile icon
Leroy01010

but it has a different name

@realTronsi

Profile icon
realTronsi

@Leroy01010
Example please?

Profile icon
Leroy01010

def bla_bla():
print("bla")

@realTronsi

Profile icon
realTronsi

@Leroy01010
Uh that's a function, not a cloud variable?

Profile icon
Leroy01010

oh :(((((((

@realTronsi

Profile icon
[deleted]

@realTronsi
no it's not a programming language and certainly not a low level proframming language. An example for a "low level and basic" programming language is c or assembly

Profile icon
realTronsi

@behavingEffort
When I'm talking about low level and basic, I am talking about the syntax and the ability to learn the language.

C or assembly is low level in the sense that it is near machine code/is machine code.

Additionally, if you look up is Scratch a programming language you get this:

Scratch is a block-based visual programming language and website targeted primarily at children to help learn code

Profile icon
CodeLongAndPros

@realTronsi
Does it have types? No.

Profile icon
realTronsi

@CodeLongAndPros
Still a language though, just very simplified and block based.

Profile icon
CodeLongAndPros

@realTronsi
Yes, it’s TC but still

Profile icon
realTronsi

@CodeLongAndPros
It's also turing complete

Profile icon
CodeLongAndPros

@realTronsi
Yes, but it’s not really a programming language. PowerPoint is TC but it’s not a PL

Profile icon
realTronsi

@CodeLongAndPros
I mean the definition of a programming language is just a language that you can use to give instructions to the machine to produce different outputs, which I think Scratch fits that pretty well..

(For example BrainF is a language and it doesn't have any types)

Also not sure what you mean by TC

Profile icon
CodeLongAndPros

@realTronsi
Turing complete. I mean you can program in scratch, but do you want to return a value? Not possible

Profile icon
realTronsi

@CodeLongAndPros
You can't return a value in BrainF either. I'm pretty sure returning a value isn't required for it to be a programming language.

Scratch is just very simplified that's all, it has all the main components such as variables, arrays/list, functions.

Besides, googling this shows that everyone is on the common consensus that Scratch is a programming language.

Profile icon
SixBeeps

@CodeLongAndPros
Wth do you mean? Scratch has Strings, Bools, Numbers, and Arrays.

Profile icon
CodeLongAndPros

@realTronsi
But if you want to do something other than spin the cat it’s pretty much impossible

Profile icon
CodeLongAndPros

@SixBeeps
But they are dynamic weak.

Profile icon
SixBeeps

@CodeLongAndPros
Then JS isn't a programming language.

Profile icon
CodeLongAndPros

@SixBeeps
but you can cast. Scratch has some serious limitations and weirdness

Profile icon
realTronsi

@CodeLongAndPros
https://scratch.mit.edu/users/griffpatch/

He's made Paper minecraft, many multiplayer games such as diep.io, physics simulators, etc all in scratch

Profile icon
SixBeeps

@CodeLongAndPros
SInce variables are dynamic, they auto-cast. I've never had a problem with it either.