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

#1 2008-02-11 04:41:30

lioncatscratch
Scratcher
Registered: 2008-02-11
Posts: 7

Programming Help and Tips

This is a topic to help you with programming in Scratch. Here are the "blocks" I will be using, I will also call them "code".                               [blocks] <move(  )steps><turn cw(  )degrees><turn cw(  )degrees><point in direction( <point towards( <go to x sad   )y sad  <go to[ <glide(  )secs to x sad   )y sad  <change x by( <set x to( <change y by( <set y to( <if on edge, bounce><x position><y position><direction><switch to costume[ <next costume><say[  ]for(  )secs><say[ <think[  ]for(  )secs><think[ <change[  ]effect by( <set[  ]effect to( <clear graphic effects><change size by( <set size to(  )%><size><show><hide><go to front><go back(  )layers> <play sound[ <play sound[  ]and waits><stop all sounds><play drum(  )for(  )secss><play note(  )for(  )secss><set instrument to(<clear><pen down><pen up><change pen color by( <set pen color to( <change pen shade by( <set pen shade to( <change pen size by( <set pen size to( <stamp><when green flag clicked><when[  ]key pressed><when[  ]clicked><wait(  )secsc><forever><repeat( <broadcast[ <when I receive[ <forever if><if><end><else><wait until><repeat until><stop script><stop all><mouse x><mouse y><mouse down?><key[  ]pressed?><touching[ <touching color[ <color[  ]is over[ <reset timer><timer><loudness><loud?>((  <->  ))((  <*>  ))((  </>  ))<pick random(  )to( <(  <<>  )><(  <=>  )><(  <>>  )><<  <and>  >><<  <or>  >><<  <not>  >>((  <mod>  ))<abs( <round( <change{  }by( <set{  }to( <{  }> ((  <+>  ))[/blocks] Here is the identification system for beginners: Blue: Motion, Purple: Looks, Pink: Sound, Green: Pen, Yellow: Control, Light Blue: Sensing, Light Green: Numbers, Orange: Variables.
                                                                                  Yours sincerely, lioncatscratch

Offline

 

#2 2008-02-11 10:58:13

Newbiez
Scratcher
Registered: 2007-12-29
Posts: 100+

Re: Programming Help and Tips

<when green flag clicked>
<forever>
<say[good tutorial ]for(unlmited )secs>

Offline

 

#3 2008-02-11 17:13:07

lioncatscratch
Scratcher
Registered: 2008-02-11
Posts: 7

Re: Programming Help and Tips

Hello again! Here is how to create a simple animation. First, add this block: [blocks]<when green flag clicked> [/blocks] Then add this block: [blocks]<forever>[/blocks] Then drop these in the forever block: [block]<move( 10<turn cw( 15 )degrees> )steps>[/blocks] Then test it by pressing the green flag!
lioncatscratch

Offline

 

#4 2008-02-11 17:33:35

Newbiez
Scratcher
Registered: 2007-12-29
Posts: 100+

Re: Programming Help and Tips

<when green flag clicked>
<repeat( 1
<set instrument to(don't understand
<play sound[ ???
<wait(0.5  )secsc>
<stop script>

Offline

 

Board footer