Snap! Reference Manual
  1. Appendices
  2. C  All Snap! Blocks Reference
  • Table of Contents
  • Acknowledgements
  • 1  Blocks, Scripts, and Sprites
  • 2  Saving and Loading Projects and Media
  • 3  Building a Block
  • 4  First class lists
  • 5  Typed Inputs
  • 6  Procedures as Data
  • 7  Object Oriented Programming with Sprites
  • 8  OOP with Procedures
  • 9  The Outside World
  • 10  Continuations
  • 11  Metaprogramming
  • 12  User Interface Elements
  • Appendices
    • A  Appendix A. Snap! color library
    • B  Appendix B. APL features
    • C  All Snap! Blocks Reference
    • Motion Blocks
      • Move
      • turn ↻ degrees
      • turn ↺ degrees
      • point in direction
      • point towards
      • go to x: y:
      • go to
      • Glide Secs to Position
      • change x by
      • set x to
      • change y by
      • set y to
      • if on edge, bounce
      • position
      • x position
      • y position
      • direction
    • Looks Blocks
      • switch to costume
      • next costume
      • costume number
      • say for secs
      • say
      • think for secs
      • think
      • Attribute of Costume
      • Stretch Costume
      • Skew Costume by Degrees
      • New Costume
      • change effect by
      • set effect to
      • clear graphic effects
      • _ effect
      • change size by
      • Set Sprite Size
      • size
      • show
      • hide
      • shown?
      • go to layer
      • go back layers
    • Sound Blocks
      • Play Sound
      • Play Sound Until Done
      • Stop All Sounds
      • Play Sound Hz
      • Attribute Of Sound
      • New Sound Rate Hz
      • Rest For Beats
      • Play Note For Beats
      • Set Instrument
      • Change Tempo
      • Set Tempo
      • Tempo
      • Change Volume
      • Set Volume
      • Volume
      • Change Balance
      • Set Balance To
      • Report Balance
      • Play Frequency Hz
      • Stop Frequency
    • Pen Blocks
      • clear
      • pen down
      • pen up
      • pen down?
      • set pen color to
      • change pen by
      • set pen to
      • pen
      • change pen size by
      • set pen size to
      • stamp
      • fill
      • write size
      • pen trails
      • paste on
      • cut from
      • Color
      • Color Attribute
      • new color
    • Control Blocks
      • When Green Flag Clicked
      • when is edited
      • when I start as a clone
      • when I receive
      • when key pressed
      • when
      • when I am
      • broadcast
      • broadcast and wait
      • Warp
      • wait secs
      • wait until
      • forever
      • repeat
      • repeat until
      • for _ = to
      • if
      • if else
      • if then else
      • report
      • stop
      • run
      • launch
      • call
      • pipe →
      • tell to
      • ask for
      • create a clone of
      • a new clone of
      • delete this clone
      • pause all ⏸
      • switch to scene
      • define
      • delete block
      • set of block to
      • Attribute Of Block
      • this
      • set slot to
    • Sensing Blocks
      • touching ?
      • touching ?
      • color is touching ?
      • ask and wait
      • answer
      • mouse position
      • mouse x
      • mouse y
      • mouse down?
      • key pressed?
      • Distance To
      • Color at Location
      • reset timer
      • timer
      • current
      • Attribute Of
      • my
      • object
      • url
      • microphone
      • video on
      • set video transparency to
      • is on?
      • set to
    • Operators Blocks
      • Command Ring
      • Reporter Ring
      • Predicate Ring
      • _
      • Subtract
      • _
      • Division
      • Power of Number
      • Mod
      • _
      • _
      • round
      • Math Functions
      • atan2 ÷
      • pick random to
      • _
      • _
      • _
      • _
      • _
      • not
      • _
      • join
      • split by
      • letter of
      • Attribute of Text
      • unicode of
      • unicode as letter
      • is a ?
      • is ?
    • Variables Blocks
      • set to
      • change by
      • show variable
      • hide variable
      • Script variables
      • inherit
      • list
      • numbers from to
      • In Front Of
      • item of
      • all but first of
      • Report List Attribute
      • index of in
      • List Contains
      • is empty?
      • map over
      • keep items from
      • find first item in
      • combine using
      • for each in
      • add to
      • delete of
      • insert at of
      • replace item of with
      • append
      • reshape to
      • combinations
  1. Appendices
  2. C  All Snap! Blocks Reference

Appendix C — All Snap! Blocks Reference

Block Image Type Category Is Primitive?
move _ steps block ‘move _ steps’ command motion true
turn $clockwise _ degrees block ‘turn $clockwise _ degrees’ command motion true
turn $counterclockwise _ degrees block ‘turn $counterclockwise _ degrees’ command motion true
point in direction _ block ’point in direction _’ command motion true
point towards _ block ’point towards _’ command motion true
go to x: _ y: _ block ’go to x: _ y: _’ command motion true
go to _ block ’go to _’ command motion true
glide _ secs to x: _ y: _ block ’glide _ secs to x: _ y: _’ command motion true
change x by _ block ’change x by _’ command motion true
set x to _ block ’set x to _’ command motion true
change y by _ block ’change y by _’ command motion true
set y to _ block ’set y to _’ command motion true
if on edge, bounce block ‘if on edge, bounce’ command motion true
position block ‘position’ reporter motion true
x position block ‘x position’ reporter motion true
y position block ‘y position’ reporter motion true
direction block ‘direction’ reporter motion true
switch to costume _ block ’switch to costume _’ command looks true
next costume block ‘next costume’ command looks true
costume # block ‘costume #’ reporter looks true
say _ for _ secs block ‘say _ for _ secs’ command looks true
say _ block ’say _’ command looks true
think _ for _ secs block ‘think _ for _ secs’ command looks true
think _ block ’think _’ command looks true
_ of costume _ block ’_ of costume _’ reporter looks true
stretch _ x: _ y: _ % block ‘stretch _ x: _ y: _ %’ reporter looks true
skew _ to _ degrees _ % no help screen reporter looks true
new costume _ width _ height _ no help screen reporter looks true
change _ effect by _ block ’change _ effect by _’ command looks true
set _ effect to _ block ’set _ effect to _’ command looks true
clear graphic effects block ‘clear graphic effects’ command looks true
_ effect block ‘_ effect’ reporter looks true
change size by _ block ’change size by _’ command looks true
set size to _ % block ‘set size to _ %’ command looks true
size block ‘size’ reporter looks true
show block ‘show’ command looks true
hide block ‘hide’ command looks true
shown? block ‘shown?’ predicate looks true
go to _ layer block ‘go to _ layer’ command looks true
go back _ layers block ‘go back _ layers’ command looks true
play sound _ block ’play sound _’ command sound true
play sound _ until done block ‘play sound _ until done’ command sound true
stop all sounds block ‘stop all sounds’ command sound true
play sound _ at _ Hz block ‘play sound _ at _ Hz’ command sound true
_ of sound _ block ’_ of sound _’ reporter sound true
new sound _ rate _ Hz no help screen reporter sound true
rest for _ beats block ‘rest for _ beats’ command sound true
play note _ for _ beats block ‘play note _ for _ beats’ command sound true
set instrument to _ block ’set instrument to _’ command sound true
change tempo by _ block ’change tempo by _’ command sound true
set tempo to _ bpm block ‘set tempo to _ bpm’ command sound true
tempo block ‘tempo’ reporter sound true
change volume by _ block ’change volume by _’ command sound true
set volume to _ % block ‘set volume to _ %’ command sound true
volume block ‘volume’ reporter sound true
change balance by _ block ’change balance by _’ command sound true
set balance to _ block ’set balance to _’ command sound true
balance block ‘balance’ reporter sound true
play frequency _ Hz block ‘play frequency _ Hz’ command sound true
stop frequency block ‘stop frequency’ command sound true
clear block ‘clear’ command pen true
pen down block ‘pen down’ command pen true
pen up block ‘pen up’ command pen true
pen down? block ‘pen down?’ predicate pen true
set pen color to _ block ’set pen color to _’ command pen true
change pen _ by _ no help screen command pen true
set pen _ to _ no help screen command pen true
pen _ block ’pen _’ reporter pen true
change pen size by _ block ’change pen size by _’ command pen true
set pen size to _ block ’set pen size to _’ command pen true
stamp block ‘stamp’ command pen true
fill block ‘fill’ command pen true
write _ size _ block ’write _ size _’ command pen true
pen trails block ‘pen trails’ reporter pen true
paste on _ block ’paste on _’ command pen true
cut from _ block ’cut from _’ command pen true
broadcast _ _ block ’broadcast _ _’ command control true
broadcast _ _ and wait block ‘broadcast _ _ and wait’ command control true
wait _ secs block ‘wait _ secs’ command control true
wait until _ block ’wait until _’ command control true
forever _ block ’forever _’ command control true
repeat _ _ block ’repeat _ _’ command control true
repeat until _ _ block ’repeat until _ _’ command control true
for _ = _ to _ _ block ’for _ = _ to _ _’ command control true
if _ _ _ block ’if _ _ _’ command control true
if _ _ else _ block ’if _ _ else _’ command control true
if _ then _ else _ block ’if _ then _ else _’ reporter control true
report _ block ’report _’ command control true
stop _ block ’stop _’ command control true
run _ _ block ’run _ _’ command control true
launch _ _ block ’launch _ _’ command control true
call _ _ block ’call _ _’ reporter control true
pipe _ $arrowRight _ no help screen reporter control true
tell _ to _ _ block ’tell _ to _ _’ command control true
ask _ for _ _ block ’ask _ for _ _’ reporter control true
create a clone of _ block ’create a clone of _’ command control true
a new clone of _ block ’a new clone of _’ reporter control true
delete this clone block ‘delete this clone’ command control true
pause all $pause block ‘pause all $pause’ command control true
switch to scene _ _ block ’switch to scene _ _’ command control true
define _ _ _ no help screen command control true
delete block _ block ’delete block _’ command control true
set _ of block _ to _ no help screen command control true
_ of block _ no help screen reporter control true
this _ no help screen reporter control true
set slot _ to _ no help screen command control true
touching _ ? block ‘touching _ ?’ predicate sensing true
touching _ ? block ‘touching _ ?’ predicate sensing true
color _ is touching _ ? block ‘color _ is touching _ ?’ predicate sensing true
ask _ and wait block ‘ask _ and wait’ command sensing true
answer block ‘answer’ reporter sensing true
mouse position no help screen reporter sensing true
mouse x block ‘mouse x’ reporter sensing true
mouse y block ‘mouse y’ reporter sensing true
mouse down? block ‘mouse down?’ predicate sensing true
key _ pressed? block ‘key _ pressed?’ predicate sensing true
_ to _ block ’_ to _’ reporter sensing true
_ at _ block ’_ at _’ reporter sensing true
reset timer block ‘reset timer’ command sensing true
timer block ‘timer’ reporter sensing true
current _ block ’current _’ reporter sensing true
_ of _ block ’_ of _’ reporter sensing true
my _ block ’my _’ reporter sensing true
object _ block ’object _’ reporter sensing true
url _ block ’url _’ reporter sensing true
microphone _ block ’microphone _’ reporter sensing true
video _ on _ block ’video _ on _’ reporter sensing true
set video transparency to _ block ’set video transparency to _’ command sensing true
is _ on? block ‘is _ on?’ predicate sensing true
set _ to _ block ’set _ to _’ command sensing true
_ block ’_’ reporter operators true
_ − _ block ’_ − _’ reporter operators true
_ block ’_’ reporter operators true
_ / _ block ’_ / _’ reporter operators true
_ ^ _ block ’_ ^ _’ reporter operators true
_ mod _ block ’_ mod _’ reporter operators true
_ no help screen reporter operators true
_ no help screen reporter operators true
round _ block ’round _’ reporter operators true
_ of _ block ’_ of _’ reporter operators true
atan2 _ ÷ _ no help screen reporter operators true
pick random _ to _ block ’pick random _ to _’ reporter operators true
_ no help screen predicate operators true
_ no help screen predicate operators true
_ no help screen predicate operators true
_ block ’_’ predicate operators true
_ block ’_’ predicate operators true
not _ block ’not _’ predicate operators true
_ block ’_’ predicate operators true
join _ block ’join _’ reporter operators true
split _ by _ block ’split _ by _’ reporter operators true
letter _ of _ block ’letter _ of _’ reporter operators true
_ of text _ no help screen reporter operators true
unicode of _ block ’unicode of _’ reporter operators true
unicode _ as letter block ‘unicode _ as letter’ reporter operators true
is _ a _ ? block ‘is _ a _ ?’ predicate operators true
is _ ? block ‘is _ ?’ predicate operators true
JavaScript function ( _ ) { _ } block ‘JavaScript function ( _ ) { _ }’ reporter operators true
set _ to _ block ’set _ to _’ command variables true
change _ by _ block ’change _ by _’ command variables true
show variable _ block ’show variable _’ command variables true
hide variable _ block ’hide variable _’ command variables true
inherit _ block ’inherit _’ command variables true
list _ block ’list _’ reporter lists true
numbers from _ to _ block ’numbers from _ to _’ reporter lists true
_ in front of _ block ’_ in front of _’ reporter lists true
item _ of _ block ’item _ of _’ reporter lists true
all but first of _ block ’all but first of _’ reporter lists true
_ of _ block ’_ of _’ reporter lists true
index of _ in _ block ’index of _ in _’ reporter lists true
_ contains _ block ’_ contains _’ predicate lists true
is _ empty? block ‘is _ empty?’ predicate lists true
map _ over _ block ’map _ over _’ reporter lists true
keep items _ from _ block ’keep items _ from _’ reporter lists true
find first item _ in _ block ’find first item _ in _’ reporter lists true
combine _ using _ block ’combine _ using _’ reporter lists true
for each _ in _ _ block ’for each _ in _ _’ command lists true
add _ to _ block ’add _ to _’ command lists true
delete _ of _ block ’delete _ of _’ command lists true
insert _ at _ of _ block ’insert _ at _ of _’ command lists true
replace item _ of _ with _ block ’replace item _ of _ with _’ command lists true
append _ block ’append _’ reporter lists true
reshape _ to _ block ’reshape _ to _’ reporter lists true
combinations _ no help screen reporter lists true
B  Appendix B. APL features
Move
  • Edit this page
  • Report an issue