Discuss Scratch

savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

COMMON QUESTIONS ANSWERED


How do I load my extension in Scratch?/How do I share my project with extensions?
Experimental extensions are not supported on scratch.mit.edu and must be used with ScratchX at scratchx.org.
You can load an experimental extension in the Scratch editor by pasting its code into the browser's developer console. This is not an intentional feature though, and saving and reloading a project will not include the extension blocks, so I don't recommend doing this.

What is discussed in this forum?
This forum is for discussing experimental extensions. This is the type of extension that is used in ScratchX. You can also talk about how experimental extensions used to be used in Scratch although this isn't done anymore. If you have suggestions for how to improve (“extend”) Scratch post them in Suggestions. Discussion about official extensions should probably be in Connecting to the Physical World.

What are extensions?
Extensions are a specific feature which is a set of blocks imported on the More Blocks tab, that usually connects to hardware or web services, or uses some feature of JavaScript. You can load official extensions (currently as of writing this the PicoBoard and WeDo extensions) in the Scratch editor and ScratchX, and you can load experimental extensions in ScratchX.

What can extensions do?
A ScratchX extension is a JavaScript file and each block in the extension runs a JavaScript function. Therefore, extensions are only able to do things that can be done using JavaScript. They are unable to interact with the ScratchX project or editor except by returning a value.



Introduction to Extensions


What is this forum?
“Developing Scratch Extensions” is a forum for extension developers to talk about creating Scratch Extensions. You can ask or answer questions about extensions here.

What are Scratch Extensions?
The wiki says:
Scratch Extensions make it possible to connect Scratch projects with external hardware (such as LEGO WeDo or PicoBoard) or sources of information on the web. They add a collection of command and reporter blocks that can be used to interact with a particular device or data source. When an extension is enabled, its blocks appear in the “More Blocks” palette.
You can read that wiki page although it is very outdated.

How do you use extensions in Scratch?
There used to be two types of extensions. HTTP extensions could only be used in the offline editor and are no longer supported. JavaScript extensions can't be used in the offline editor, and are the current type of extension. There are a small number of official extensions in the online Scratch editor. They are for interacting with physical devices and can be found in the More Blocks tab of the block palette. Experimental extensions that have not been added to Scratch by the Scratch Team can't* be used with Scratch and must be used with ScratchX.

What is ScratchX?
ScratchX is a website on which you can use an alternate version of the Scratch editor to create projects with experimental extensions. You can't create an account on ScratchX or save projects online, so projects must be saved by downloading them as SBX files. The ScratchX website describes ScratchX:
On the ScratchX website, you can play with Experimental Extensions to Scratch. Because these extensions are experimental and not enforsed or supported by the Scratch Team, they are available only on the ScratchX site, not the main Scratch site.

Where can I find extensions?
The list of ScratchX extensions can be found by clicking “See all Extensions” on the ScratchX home page. More extensions can be found in the unofficial extensions directory, previously managed by Thepuzzlegame and currently managed by me.

How can I make extensions?
Extensions are JS files coded in JavaScript. If you don't know JavaScript you can find tutorials online by searching. You can then read the instructions for how to make extensions on the ScratchX wiki.

*Actually you can use experimental extensions in the Scratch editor by pasting their code into the browser console (see first common question) but this is not intended and I do not recommend it.

Reply if you have any more questions people ask a lot for me to add, or if something I put is wrong.

Last edited by savaka (Nov. 7, 2016 12:03:33)

f1lip
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Really helpful guide.

my geometry dash is riot…
nah just kidding its CreatorFilipex
savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Oh wow I got a sticky

Last edited by savaka (May 23, 2016 13:53:12)

Jonathan50
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

savaka wrote:

Oh wow I got a sticky
Congratulations!!

ae2d2bcb-e9e3-4f9c-a847-290d71bd8bfd 222ec087-6694-42cf-8c41-064e9066f004
savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

updated a lot
enilK
Scratcher
74 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

savaka wrote:

Oh wow I got a sticky
What is a sticky?


Here are some foods for you KUMqUATS to eat instead of my signature:
report [~enilK] :: control cap
savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

enilK wrote:

savaka wrote:

Oh wow I got a sticky
What is a sticky?
A sticky is a post that stays at the top of the forum because it's helpful for people to read. It's also marked with a pin icon.
enilK
Scratcher
74 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

savaka wrote:

enilK wrote:

savaka wrote:

Oh wow I got a sticky
What is a sticky?
A sticky is a post that stays at the top of the forum because it's helpful for people to read. It's also marked with a pin icon.
Thank you!
I have another question: How can I add spaces in the block palette, like in between
(pick random (1) to (10))
and
<[] < []>
in the operatorators category?


Here are some foods for you KUMqUATS to eat instead of my signature:
report [~enilK] :: control cap
enilK
Scratcher
74 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

savaka wrote:

I just noticed the ExtenilK topic in that picture!


Here are some foods for you KUMqUATS to eat instead of my signature:
report [~enilK] :: control cap
Jonathan50
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

enilK wrote:

I have another question: How can I add spaces in the block palette, like in between
(pick random (1) to (10))
and
<[] < []>
in the operatorators category?
Put ['-'], in the blocks array of the descriptor.

ae2d2bcb-e9e3-4f9c-a847-290d71bd8bfd 222ec087-6694-42cf-8c41-064e9066f004
rapaulo
New to Scratch
5 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

ola
rapaulo
New to Scratch
5 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

nao es nada de especial mas eu ca sou
Neilbose12345678910
Scratcher
57 posts

COMMON QUESTIONS ANSWERED / HELP FAQ

i have a question
define 

over here How do we actualy define the block ,does it define on its own
savaka
Scratcher
1000+ posts

COMMON QUESTIONS ANSWERED / HELP FAQ

Neilbose12345678910 wrote:

i have a question
define 

over here How do we actualy define the block ,does it define on its own
That is not related to extensions, please ask in the Questions about Scratch forum.

Powered by DjangoBB

Standard | Mobile