Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » How to make a extension
- superMEGAqx123
-
4 posts
How to make a extension
class HelloWorld {
getInfo() {
return {
id: ‘helloworld’,
name: ‘It works!’,
blocks: [
{
opcode: ‘hello’, //name
blockType: Scratch.BlockType.REPORTER,//type of block
text: ‘Hello!’//display text
}
]
};
}
hello() {
return ‘World!’; //all the functions and thing to return
}
}
Scratch.extensions.register(new HelloWorld()); //register the extension
getInfo() {
return {
id: ‘helloworld’,
name: ‘It works!’,
blocks: [
{
opcode: ‘hello’, //name
blockType: Scratch.BlockType.REPORTER,//type of block
text: ‘Hello!’//display text
}
]
};
}
hello() {
return ‘World!’; //all the functions and thing to return
}
}
Scratch.extensions.register(new HelloWorld()); //register the extension
- peppagactual3
-
10 posts
How to make a extension
here are some great extension iiw anna ideas! go topi- no birdextent.birdgoodwebsite .Birdextent! … code extensions easily with a scratch format! python is trash so thats what you should bash! or go to the app! Birdextent App!..
move () steps
move () steps
move () steps
move () steps
move () steps
move () steps
point in direction ( v)
point in direction ( v)
point towards [ v]
point towards [ v]
- superMEGAqx123
-
4 posts
How to make a extension
You can ask chatgpt,or the turbowarp website to learn(https://docs.turbowarp.org/development/extensions/introduction)
- Discussion Forums
- » Developing Scratch Extensions
-
» How to make a extension