Post links to tutorial projects or write one here!
Offline
How to code your own block first u shift click on the loop of the R in scratch then u click turn fill screen off ok now see that white space? Click it click open then browser. Yay!
You opened the scratch browser. Now, click scratch-objects
Scratch sprite morph class blockspecs blockspecs.
Click after a right parenthesis or this symbol ) add. A left 1 which is ( add a quotation or a '. Type your block name add another quotation so now it looks like this ('yourtexthere'
Now time to code it !
If u want it to be stack do not type any thing oblong #b reporter #r and loop #c.
Now type #- #yourcodehere so now it looks like this ('duplicate' #- #duplicateCostume) then click
The top of the bar, it should look like this - click accept type your initials click ok then close out and look where u saved ur block and some work some don't so don't be upset if yours dosent work. SCRATCH ON
Offline
How to scroll:
Scrolling is a technique that is used to change the background to create a moving effect.
To start, go to variables and create a variable titled "scroll x".
[blocks] <{ scroll x }> [/blocks]
This is the variable that dictates the scrolling.
Next add the
[blocks] <when[ space ]key pressed> [/blocks]
block twice under the scratch cat. Change one of the blocks to "right arrow" and the other to "left arrow".
Under "when right arrow key pressed", add
[blocks] <change{ scroll x }by( -5 ) [/blocks]
and under "when left arrow key pressed", add
[blocks] <change{ scroll x }by( 5 ) [/blocks].
Then, create three platforms. They should look different, but be the same height. If they are different heights, the scrolling will not look right.
Under the first platform, add
[blocks] <when green flag clicked> [/blocks],
[blocks] <forever> [/blocks],
and inside of that,
[blocks] <set x to( <{ scroll x }> ) [/blocks].
For the next, do the same, but instead of adding [set x to (scroll x)], add
[blocks] <set x to( ( <{ scroll x }> ( <+> ) 480 ) [/blocks]
The 480 is used because this is the length of the stage. This is used to hide the second platform when scroll x=0
For the third platform, do the same as the second, but instead of typing 480, type 960.
Press the green flag and start scrolling!
Sorry, the block pictures don't work. I hope you can still understand.
Last edited by mr_fish_fish (2011-06-03 22:02:30)
Offline