Discuss Scratch

thoyal
Scratcher
500+ posts

What Language Does Scratch Use?

Hi, everyone! This is my first topic in the Advanced Topics forum. So, I've been wondering, what programming language does Scratch use? I want to upload a Scratch project to the website Kongregate, but I don't know what format to upload it! So, do you know what programming language Scratch uses? Also, if you have any uploading tips, let me know. Thanks! Scratch on!
alexphan
Scratcher
1000+ posts

What Language Does Scratch Use?

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.

Last edited by alexphan (Aug. 25, 2016 18:14:45)

thoyal
Scratcher
500+ posts

What Language Does Scratch Use?

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)

Last edited by thoyal (Aug. 25, 2016 18:20:48)

lugga
Scratcher
500+ posts

What Language Does Scratch Use?

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.

Last edited by lugga (Aug. 25, 2016 19:03:15)

thoyal
Scratcher
500+ posts

What Language Does Scratch Use?

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
lugga
Scratcher
500+ posts

What Language Does Scratch Use?

thoyal wrote:

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
Sadly, I don't, but if you look around the ATs you'll find it.
goldfish678
Scratcher
1000+ posts

What Language Does Scratch Use?

thoyal wrote:

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
Lucky for you, I have it bookmarked.
thoyal
Scratcher
500+ posts

What Language Does Scratch Use?

goldfish678 wrote:

thoyal wrote:

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
Lucky for you, I have it bookmarked.
Thank you so much! I was able to download my game as a .swf file. Woo hoo!
goldfish678
Scratcher
1000+ posts

What Language Does Scratch Use?

thoyal wrote:

goldfish678 wrote:

thoyal wrote:

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
Lucky for you, I have it bookmarked.
Thank you so much! I was able to download my game as a .swf file. Woo hoo!
No problem
algmwc5
Scratcher
100+ posts

What Language Does Scratch Use?

Scratch 1.x uses squeak, a dialect of smalltalk, Scratch 2.0 uses Actionscript, a language used for Flash
There's also a version of scratch in HTML5 but it has been depreciated (lol thisandagain made a typo)
Scratch-blocks is written in JavaScript

Last edited by algmwc5 (Aug. 26, 2016 00:34:41)

djdolphin
Scratcher
1000+ posts

What Language Does Scratch Use?

algmwc5 wrote:

depreciated (lol thisandagain made a typo)
Nope, “deprecated” is correct. https://en.wikipedia.org/wiki/Deprecation#Software_deprecation
algmwc5
Scratcher
100+ posts

What Language Does Scratch Use?

djdolphin wrote:

algmwc5 wrote:

depreciated (lol thisandagain made a typo)
Nope, “deprecated” is correct. https://en.wikipedia.org/wiki/Deprecation#Software_deprecation
oh…
0037318
Scratcher
100+ posts

What Language Does Scratch Use?

I would assume it is not javascript due to the fact that you have to specify what type of parameters you want for each function. Javascript doesn't require you to do that.
TheAspiringHacker
Scratcher
100+ posts

What Language Does Scratch Use?

0037318 wrote:

I would assume it is not javascript due to the fact that you have to specify what type of parameters you want for each function. Javascript doesn't require you to do that.
  1. This topic is very old. Bumping up inactive topics isn't good forum etiquette.
  2. Just because JavaScript is dynamically typed, and Scratch parameters have different shapes for different types, doesn't mean that Scratch can't be implemented in JavaScript. Statically-typed programming languages can theoretically be implemented in dynamically-typed languages. (Note that Scratch is actually dynamically-typed itself; variables, including parameters, can hold any type.) Scratch 3 is being written in JavaScript.

Last edited by TheAspiringHacker (Sept. 5, 2017 20:14:38)

frances2005
Scratcher
500+ posts

What Language Does Scratch Use?

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.

i think in 3.0 it will be with HTML5.
but you better hurry if you want to upload your project. flash is closing its doors in 2020.
1800_m1necr4ft
Scratcher
21 posts

What Language Does Scratch Use?

thoyal wrote:

lugga wrote:

thoyal wrote:

alexphan wrote:

Before Scratch 2.0, it was coded with Squeak (a version of Smalltalk). Now, it's programmed with Adobe Flash (which is based on ActionScript).

Some more info you probably don't want
Phosphorus converts Scratch projects into Javascript so certain projects can run faster.

Currently Scratch is making an HTML5 version which does not need Flash.
I'll probably have to use Phosphorus, because the Kongregate website won't accept the regular Scratch file type. (Even though Kongregate accepts Flash)
Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Ooh… I'll have to look for the swf compiler. Do you know where I can find it?
i clicked “do not click”
Jeffalo
Scratcher
1000+ posts

What Language Does Scratch Use?

1800_m1necr4ft wrote:

~snip
i clicked “do not click”

please look at the latest post before replying.

the last post is 2 and a half years old.
ElsieBreeze
Scratcher
100+ posts

What Language Does Scratch Use?

lugga wrote:

Scratch Files are not in any programming language. They are exported as Zips that contain JSON (Javascript Object Notation) that containts the project. JSON is just a convenient storage media for data. You can't use phosphorus either, because I don't think Kongregate accepts javascript. There is a sb2 to swf compiler somewhere, so I guess you can try that.
Hello me from 4 years ago :3

Also Scratch is written in JavaScript now (since no one has mentioned S3 yet in this thread except TAH, before it was released)
if1hadd--19
Scratcher
93 posts

What Language Does Scratch Use?

It was first programmed in squeak, then flash, and currently html5
PlainCodA
Scratcher
19 posts

What Language Does Scratch Use?

Guys, I have a question, since Scratch uses html5, does that mean Scratch uses JavaScript?

when green flag clicked
forever
if <key [left arrow] pressed?> then
Walking (-90) (-4)
end
if <key [right arrow] pressed?> then
Walking (90) (4)
end
end

define Walking (angle) (speed)
point in direction (angle)
change x by (speed)

Last edited by PlainCodA (Sept. 9, 2020 01:30:13)

Powered by DjangoBB