Discuss Scratch

xuya
Scratcher
32 posts

How do they function?

Just how?
Garamol56
Scratcher
100+ posts

How do they function?

Well, scratch extensions (at least for 2.0) use JavaScript to do all the work, and then just map the outputs to buttons. Essentially, every time we run a block, say
((x) + (y)) 
, we call a JavaScript function and map the scratchblock inputs to the parameters, in this example we might use
function add(x,y) {
return(x+y)
}

This isn't the most in-depth explanation, but a further read is on the scratchx website.

Current Posts: 266
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein

Powered by DjangoBB