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

#1 2010-09-14 20:03:04

mXsoft11
Scratcher
Registered: 2010-05-10
Posts: 100+

xScript - A Scratch Programming Language

xScript: A easy scratch language
A TUTORIAL
Hello World Application:
When it comes out, download it and open it in Scratch.
Then, when it asks you if you want to enter 'easy' or 'hard', choose easy. Easy mode is a simple version of xScript. When it asks you for a command, type in the following:

Code:

x.ScriptVars>0000

What is this? Let's break it down. "x." is the module selector. A module is a piece of code that makes programming easier. In this case we are using the preinstalled module "x". "ScriptVars" is the command we are using in the "x" module. ScriptVars sets the amount of variables in the program. ">" is a operator in xScript meaning set. and then you have to set a number of variables (4 digit and up to 9,999).
Now, we want to write something to the console list. So, then type:

Code:

Hello World!

Yep! Simple as that. Just type what you want to write.
Now, let's improve our program. We want to be able to get the user's name and say:

Hello, [user's name here]!

So, here begins the section on VARIABLES.


Now, how do we set a variable? Well, first you have to tell xScript how many variables you want. Remember in the "hello world" app, we put in "x.ScriptVars>0000"? That sets the amount of variables you'll use at runtime. Now, setting the value. Here's what the code is:

Code:

set [variable number (four digit!!)] {
[value here]

Last edited by mXsoft11 (2010-09-27 18:05:35)


http://bannerbreak.com/banners/4/696/129702802765745581.gif

Offline

 

#2 2010-09-14 20:04:12

webkinzfan7
Scratcher
Registered: 2008-08-31
Posts: 59

Re: xScript - A Scratch Programming Language

mXsoft11 wrote:

                                       xScript: A easy scratch language

So... What is it?  hmm


There's a reason why I haven't uploaded anything in a year...  sad

Offline

 

#3 2010-09-15 15:29:17

darkness3560
Scratcher
Registered: 2010-07-28
Posts: 30

Re: xScript - A Scratch Programming Language

bump


http://1024128.webs.com/1.pnghttp://1024128.webs.com/2.pnghttp://1024128.webs.com/3.pnghttp://1024128.webs.com/4.png
Pi is Pi, and Pi is 3.1415926535897932384626433832795028841971693993751058209749.

Offline

 

#4 2010-09-15 18:28:40

mXsoft11
Scratcher
Registered: 2010-05-10
Posts: 100+

Re: xScript - A Scratch Programming Language

webkinzfan7 wrote:

mXsoft11 wrote:

                                       xScript: A easy scratch language

So... What is it?  hmm

A language written in scratch.  smile


http://bannerbreak.com/banners/4/696/129702802765745581.gif

Offline

 

Board footer