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

#1 2010-10-02 09:31:32

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Puri Programmer: Syntax

(value) = enter a number or word here.

be sure to enter the Category (i.e. CategorySize) before writing the values!

Looks:

CategoryTalking
(value) = x position to start off on.
(value) = y position to start off on.
(value) = secs for saying word.
(value) = word to say.

CategoryThinking
(value) = x position to start off on.
(value) = y position to start off on.
(value) = secs for thinking word.
(value) = word to think.

CategorySize:
(value) = x position to start off on.
(value) = y position to start off on.
(value) = size effect for sprite. (100 =  normal size)

CategoryCostume
(value) = x position to start off on.
(value) = y position to start off on.
(value) = costume to switch to.


Motion:

CategoryMovement
(value) = x position to start off on.
(value) = y position to start off on.
(value) = change x by value.
(value) = change y by value.

CategoryDirection
(value) = x position to start off on.
(value) = y position to start off on.
(value) = point in direction value

CategoryGliding
(value) = x position to start off on.
(value) = y position to start off on.
(value) = secs to glide for.
(value) = x position to glide to.
(value) = y position to glide to.


Sensing:

CategoryAsk:

(value) = x position to start off on.
(value) = y position to start off on.
(value) = ask value
(value) = if answer = value do following:
(value) = secs for saying word for.
(value) = word to say.


Pen:

CategoryPen

(value) = value can be either 'pendown, penup, stamp or clear' (remove ' and ,)


Info:

Secs always come before any text in this syntax. Also every code needs and x and y position to

start off on. Sensing blocks are being made and answer can be made into anything in version 2.


Users notes:

this took me 20 mins to write and 20 mins to program. Please add what you would like to see in

the next version or any questions/comments.

smile

TornFusion,

Offline

 

Board footer