Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » How do they function?
- 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
This isn't the most in-depth explanation, but a further read is on the scratchx website.
((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
Code to find my posts: Z2FyYW1vbDU2
Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein
- Discussion Forums
- » Developing Scratch Extensions
- » How do they function?