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

#1 2010-02-13 11:13:52

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Tutorial

I'm not sure where this is supposed to go, move it if necessary!

This is the tutorial for a programming language I made in scratch (here: http://scratch.mit.edu/projects/juststickman/886099)

>>>>PART ONE  <<<<

1. How this works
The way the program works is that you enter a trigger (example, right arrow key), followed by an action (for example, move 10 steps).

2. What do I type in?
Like I said in the first step, you have to type in a trigger and in action in the same line of code. For example: [R]M090S ([R] is the trigger and M090S is the action).
List of triggers:
[R] is right arrow
[L] is left arrow
is up arrow
[D] is down arrow
[ ] is space bar
[M] is mouse
[F] does not need any button to be pressed.


List of actions:
MxxxS- move a certain number of steps
PxxxD- point in a certain direction
CxxxE- change color effect by a number
CxxxS- set color effect to a number
GxxxE- change ghost effect by a number
GxxxS- set ghost effect to a number
SxxxE- change size by a number
SxxxS- set size to a number
{xxx-xxx}- go to a position. The first number is the X coordinate, the second is the Y coordinate

You have to replace the xxx with a 3-digit number. If you want to type in 90, you have to type 090 etc. keep in mind that a negative sign counts as a digit here.

>>>>[u]PART TWO
  <<<<

Making a simple program
Time to try making something!!! I will show you how to make a simple glowing character that will change directions.

Enter this code (every line is a line of code, after the ":" is my comment):
[F]C010E: this changes the character's color effect, making it "glow"
[F]{000-000}: this sets the character to a certain position on the screen
[R]P090D: this makes the character point to the right
[L]P-90D: this makes the character point to the left
[u]P000D: this makes the character point down
[D]P180D: this makes the character point up

Last edited by juststickman (2010-02-13 11:24:09)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#2 2010-02-13 11:27:46

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Tutorial

We can't type M1000S?  Aw...


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-02-13 11:30:43

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Tutorial

Kileymeister wrote:

We can't type M1000S?  Aw...

That would get you off of the screen.. What's the point?


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#4 2010-02-13 11:39:48

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Tutorial

juststickman wrote:

Kileymeister wrote:

We can't type M1000S?  Aw...

That would get you off of the screen.. What's the point?

Um, um, dunno. Nevermind.

Last edited by Kileymeister (2010-02-13 11:39:55)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2010-02-15 18:43:51

anna_e65
Scratcher
Registered: 2009-09-25
Posts: 5

Re: Tutorial

im sorry this is all comfusing me  hmm


The sentence below this is the truth.
the sentence above this is a lie.

Offline

 

#6 2010-02-15 18:46:42

thelastTAG
Scratcher
Registered: 2010-02-15
Posts: 37

Re: Tutorial

anna_e65 wrote:

im sorry this is all comfusing me  hmm

Of course it is. You are a new member and like many you need to be properly introduced into the would of scratch. Please ask any specific questions you have about scratch on the forums.

Offline

 

#7 2010-02-16 03:15:02

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Tutorial

anna_e65 wrote:

im sorry this is all comfusing me  hmm

It would be a good idea to LOOK AT THE PROJECT THAT I LINKED TO.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#8 2010-02-20 10:17:44

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Tutorial

Bump...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#9 2010-02-20 10:20:34

Greenboi
Scratcher
Registered: 2010-01-30
Posts: 1000+

Re: Tutorial

Nice Tutorial  wink

Offline

 

#10 2010-02-26 20:16:30

venus8000
Scratcher
Registered: 2009-01-07
Posts: 26

Re: Tutorial

why can't you do something like this?

Code wrote:

Forever
turn(_) degrees
End Forever

It would make things a lot easier.  smile


http://scratch.mit.edu/static/icons/gallery/73576.png?t=2010-02-20+10%3A25%3A31 Scratch on, and please, help the environment here! Just ask to join!

Offline

 

#11 2010-02-26 20:42:51

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Tutorial

juststickman wrote:

anna_e65 wrote:

im sorry this is all comfusing me  hmm

It would be a good idea to LOOK AT THE PROJECT THAT I LINKED TO.

WOW! THAT WAS VERY NICE!  mad


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

Board footer