This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-06 04:15:05

Charles_2006
New Scratcher
Registered: 2012-04-06
Posts: 1

How to write scripting code in Scratch?

I just started to play Scratch in Windows 1 day ago. It works fine. Here my question is - how can I find a panel to write scripting code in Scratch rather than just drag/draw/click the blocks to run the program or automation.
I guess Scratch should provide an easy scripting language on top of Java, so that people like me (a typical programmer) could write the code (in any edit tool) as usual then execute the code.  Drag/draw way for sure is great but writing scripting-code would be a plus.

Appreciate anyone sharing the answer or relevant resource.

Offline

 

#2 2012-04-06 04:27:23

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: How to write scripting code in Scratch?

Unfortunately, Scratch does not currently have a scripting panel, or support text-based scripting.

Last edited by trinary (2012-04-06 04:39:57)


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-04-06 04:29:54

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: How to write scripting code in Scratch?

Charles_2006 wrote:

I just started to play Scratch in Windows 1 day ago. It works fine. Here my question is - how can I find a panel to write scripting code in Scratch rather than just drag/draw/click the blocks to run the program or automation.
I guess Scratch should provide an easy scripting language on top of Java, so that people like me (a typical programmer) could write the code (in any edit tool) as usual then execute the code.  Drag/draw way for sure is great but writing scripting-code would be a plus.

Appreciate anyone sharing the answer or relevant resource.

scratch only supports drag and drop editing. Soon there may be a text IDE for scratch which uses this
but for now only drag and drop editing is possible


http://i.imgur.com/1QqnHxQ.png

Offline

 

#4 2012-04-06 06:09:12

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: How to write scripting code in Scratch?

well, we (m30w team) are doing some progress, but until saving with kurt, we have a pretty long way to go '-'

Offline

 

#5 2012-04-06 09:32:44

Snowdrift
Scratcher
Registered: 2011-06-22
Posts: 500+

Re: How to write scripting code in Scratch?

The reason for that is becuase scratch was made for kids 8+. And it would be confusing and overpowering if there ws, what, 48 lines o' code?

Offline

 

#6 2012-04-06 12:54:42

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: How to write scripting code in Scratch?

You can actually code your own blocks in Squeak, with Panther - a Scratch Mod. But you can't import this into Scratch unless you know what you're doing (which sadly, I don't.)


I'm back.
Maybe.

Offline

 

#7 2012-04-06 13:04:15

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to write scripting code in Scratch?

There is a suggestion for a "text-based Scratch" though.  The main problem is that it isn't very kid-friendly (as Snowdrift said).  If you want to program in Java, I suggest programming in an environment specific to Java.  Scratch is really meant as an introduction to programming, not as a way to web together different programming languages.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#8 2012-04-07 07:13:11

etermpapers
New Scratcher
Registered: 2012-03-20
Posts: 3

Re: How to write scripting code in Scratch?

As i know about scripting code that You can write a script code by first determining which kind you want to run. The two more common types of script are called "JavaScript" and "Visual Basic," or "VB" script. Learning these light programming languages is almost like learning a foreign language. Each has rules to follow, and with a little practice, you'll be able to write a script code skillfully and after practicing many time you are able to write scripting code professionally.Hope you guys understand it
that what is the basic term use in writing scripting code.

Offline

 

#9 2012-04-10 00:21:47

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: How to write scripting code in Scratch?

I posted a suggestion on the Scratch suggestions page a few days ago that there be support for text-to-script conversion and vice versa.  But I haven't heard back yet. 

Anyway, here's the link: Text-to-Blocks Suggestion

I support a text-based option in Scratch, since I'm used to programming in C# in the Visual Studio IDE.

Last edited by amcerbu (2012-04-10 00:23:21)

Offline

 

#10 2012-04-10 05:31:27

Hefekorn
New Scratcher
Registered: 2012-04-10
Posts: 1

Re: How to write scripting code in Scratch?

If you want to use something like scratch just with writing aswell scripting code -
Try out stencyl it has aswell this box programming nut you can write aswell it is just a bit diffeculter

Offline

 

#11 2012-04-10 09:09:54

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to write scripting code in Scratch?

Lightnin already commented on this here.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer