-
Notifications
You must be signed in to change notification settings - Fork 1
Supported Blocks
B1j2754 edited this page Dec 15, 2024
·
2 revisions
- Motion Blocks
- Looks Blocks
- Sounds Blocks
- Events Blocks
- Control Blocks
- Sensing Blocks
- Operator Blocks
- Variable Blocks
- List Blocks
- Pen Blocks
- Internal Blocks
- Opcode: motion_movesteps
- Type: stack
- Inputs:
- Inputs[steps]
- Example:
move(i.steps)
- Opcode: motion_turnright
- Type: stack
- Inputs:
- Inputs[degrees]
- Example:
turn(i.degrees)
- Opcode: motion_gotoxy
- Type: stack
- Inputs:
- Inputs[x]
- Inputs[y]
- Example:
gotoXY(i.x, i.y)
- Opcode: motion_goto
- Type: stack
- Inputs:
- Inputs[to(goto_menu)]
- Example:
goto(i.to(goto_menu))
- Opcode: motion_glidesecstoxy
- Type: stack
- Inputs:
- Inputs[secs]
- Inputs[x]
- Inputs[y]
- Example:
glideXY(i.secs, i.x, i.y)
- Opcode: motion_glideto
- Type: stack
- Inputs:
- Inputs[to(glideto_menu)]
- Example:
glideto(i.to(glideto_menu))
- Opcode: motion_pointindirection
- Type: stack
- Inputs:
- Inputs[direction]
- Example:
point(i.direction)
- Opcode: motion_pointtowards
- Type: stack
- Inputs:
- Inputs[towards(point_towards_menu)]
- Example:
pointTo(i.towards(point_towards_menu))
- Opcode: motion_changexby
- Type: stack
- Inputs:
- Inputs[dx]
- Example:
changeX(i.dx)
- Opcode: motion_setx
- Type: stack
- Inputs:
- Inputs[x]
- Example:
setX(i.x)
- Opcode: motion_changeyby
- Type: stack
- Inputs:
- Inputs[dy]
- Example:
changeY(i.dy)
- Opcode: motion_sety
- Type: stack
- Inputs:
- Inputs[y]
- Example:
setY(i.y)
- Opcode: motion_ifonedgebounce
- Type: stack
- Inputs: None
- Example:
edgeBounce()
- Opcode: motion_setrotationstyle
- Type: stack
- Inputs:
- Fields[style{left-right;don't rotate;all around}]
- Example:
rotationStyle(f.style{left-right;don't rotate;all around})
- Opcode: motion_xposition
- Type: reporter
- Inputs: None
- Example:
xPos()
- Opcode: motion_yposition
- Type: reporter
- Inputs: None
- Example:
yPos()
- Opcode: motion_direction
- Type: reporter
- Inputs: None
- Example:
direction()
- Opcode: looks_sayforsecs
- Type: stack
- Inputs:
- Inputs[message]
- Inputs[secs]
- Example:
timeSay(i.message, i.secs)
- Opcode: looks_say
- Type: stack
- Inputs:
- Inputs[message]
- Example:
say(i.message)
- Opcode: looks_thinkforsecs
- Type: stack
- Inputs:
- Inputs[message]
- Inputs[secs]
- Example:
timeThink(i.message, i.secs)
- Opcode: looks_think
- Type: stack
- Inputs:
- Inputs[message]
- Example:
think(i.message)
- Opcode: looks_switchcostumeto
- Type: stack
- Inputs:
- Inputs[costume(costume_menu)]
- Example:
switchCostume(i.costume(costume_menu))
- Opcode: looks_nextcostume
- Type: stack
- Inputs: None
- Example:
nextCostume()
- Opcode: looks_switchbackdropto
- Type: stack
- Inputs:
- Inputs[costume(backdrop_menu)]
- Example:
switchBackdrop(i.costume(backdrop_menu))
- Opcode: looks_nextbackdrop
- Type: stack
- Inputs: None
- Example:
nextBackdrop()
- Opcode: looks_changesizeby
- Type: stack
- Inputs:
- Inputs[change]
- Example:
changeSize(i.change)
- Opcode: looks_setsizeto
- Type: stack
- Inputs:
- Inputs[size]
- Example:
setSize(i.size)
- Opcode: looks_changeeffectby
- Type: stack
- Inputs:
- Fields[effect{color;fisheye;whirl;pixelate;mosaic;brightness;ghost}]
- Inputs[change]
- Example:
changeFx(f.effect{color;fisheye;whirl;pixelate;mosaic;brightness;ghost}, i.change)
- Opcode: looks_seteffectto
- Type: stack
- Inputs:
- Fields[effect{color;fisheye;whirl;pixelate;mosaic;brightness;ghost}]
- Inputs[value]
- Example:
setFx(f.effect{color;fisheye;whirl;pixelate;mosaic;brightness;ghost}, i.value)
- Opcode: looks_cleargraphiceffects
- Type: stack
- Inputs: None
- Example:
clearFx()
- Opcode: looks_show
- Type: stack
- Inputs: None
- Example:
show()
- Opcode: looks_hide
- Type: stack
- Inputs: None
- Example:
hide()
- Opcode: looks_gotofrontback
- Type: stack
- Inputs:
- Fields[front_back{front;back}]
- Example:
goToLayer(f.front_back{front;back})
- Opcode: looks_goforwardbackwardlayers
- Type: stack
- Inputs:
- Fields[forward_backward{front;back}]
- Fields[m]
- Example:
changeLayer(f.forward_backward{front;back}, num)
- Opcode: looks_costumenumbername
- Type: reporter
- Inputs:
- Fields[number_name{number;name}]
- Example:
getCostume(f.number_name{number;name})
- Opcode: looks_backdropnumbername
- Type: reporter
- Inputs:
- Fields[number_name{number;name}]
- Example:
getBackdrop(f.number_name{number;name})
- Opcode: looks_size
- Type: reporter
- Inputs: None
- Example:
size()
- Opcode: sound_play
- Type: stack
- Inputs:
- Inputs[sound_menu(sound_menu)]
- Example:
play(i.sound_menu(sound_menu))
- Opcode: sound_playuntildone
- Type: stack
- Inputs:
- Inputs[sound_menu(sound_menu)]
- Example:
playWait(i.sound_menu(sound_menu))
- Opcode: sound_stopallsounds
- Type: stack
- Inputs: None
- Example:
stopSounds()
- Opcode: sound_changeeffectby
- Type: stack
- Inputs:
- Inputs[effect{pitch;pan left/right}]
- Inputs[value]
- Example:
changeSoundFx(i.effect{pitch;pan left/right}, i.value)
- Opcode: sound_seteffectto
- Type: stack
- Inputs:
- Inputs[effect{pitch;pan left/right}]
- Inputs[value]
- Example:
setSoundFx(i.effect{pitch;pan left/right}, i.value)
- Opcode: sound_cleareffects
- Type: stack
- Inputs: None
- Example:
clearSoundFx()
- Opcode: sound_changevolumeby
- Type: stack
- Inputs:
- Inputs[volume]
- Example:
changeVolume(i.volume)
- Opcode: sound_setvolumeto
- Type: stack
- Inputs:
- Inputs[volume]
- Example:
setVolume(i.volume)
- Opcode: sound_volume
- Type: reporter
- Inputs: None
- Example:
volume()
- Opcode: event_whenflagclicked
- Type: hat
- Inputs: None
- Example:
whenFlag()
- Opcode: event_whenkeypressed
- Type: hat
- Inputs:
- Fields[key_option{...}]
- Example:
whenKey(f.key_option{...})
- Opcode: event_whenthisspriteclicked
- Type: hat
- Inputs: None
- Example:
whenSpriteClicked()
- Opcode: event_whenbackdropswitchesto
- Type: hat
- Inputs:
- Fields[backdrop{backdrop1;...}]
- Example:
whenBackdropSwitch(f.backdrop{backdrop1;...})
- Opcode: event_whengreaterthan
- Type: hat
- Inputs:
- Fields[whengreaterthanmenu{loudness]
- Fields[mer}]
- Inputs[value]
- Example:
whenGreater(f.whengreaterthanmenu{loudness, timer}, i.value)
- Opcode: event_whenbroadcastreceived
- Type: hat
- Inputs:
- Fields[broadcast_option{...}]
- Example:
whenBroadcast(f.broadcast_option{...})
- Opcode: event_whentouchingobject
- Type: hat
- Inputs:
- Inputs[touchingobjectmenu(touching_menu)]
- Example:
whenTouching(i.touchingobjectmenu(touching_menu))
- Opcode: event_broadcast
- Type: stack
- Inputs:
- Inputs[broadcast_input]
- Example:
sendBroadcast(i.broadcast_input)
- Opcode: event_broadcastandwait
- Type: stack
- Inputs:
- Inputs[broadcast_input]
- Example:
sendBroadcastWait(i.broadcast_input)
- Opcode: control_wait
- Type: stack
- Inputs:
- Inputs[duration]
- Example:
wait(i.duration)
- Opcode: control_repeat
- Type: c
- Inputs:
- Inputs[times]
- Inputs[substack]
- Example:
repeat(i.times) {
...
}
- Opcode: control_forever
- Type: c
- Inputs:
- Inputs[substack]
- Example:
forever() {
...
}
- Opcode: control_if
- Type: c
- Inputs:
- Inputs[condition[bool]]
- Inputs[substack]
- Example:
if(i.condition[bool]) {
...
}
- Opcode: control_if_else
- Type: c
- Inputs:
- Inputs[condition[bool]]
- Inputs[substack]
- Inputs[substack2]
- Example:
if(i.condition[bool]) {
...
} else {
...
}
-or-
if(i.condition[bool]) {
...
}
else {
...
}
- Opcode: control_wait_until
- Type: stack
- Inputs:
- Inputs[condition[bool]]
- Example:
waitUntil(i.condition[bool])
- Opcode: control_repeat_until
- Type: c
- Inputs:
- Inputs[condition[bool]]
- Inputs[substack]
- Example:
repeatUntil(i.condition[bool]) {
...
}
- Opcode: control_stop
- Type: cap
- Inputs:
- Fields[stop_option{all;this script;other scripts in sprite}]
- Example:
stop(f.stop_option{all;this script;other scripts in sprite})
- Opcode: control_start_as_clone
- Type: hat
- Inputs: None
- Example:
whenCloneStart()
- Opcode: control_create_clone_of
- Type: stack
- Inputs:
- Inputs[clone_option(clone_menu)]
- Example:
createClone(i.clone_option(clone_menu))
- Opcode: control_delete_this_clone
- Type: cap
- Inputs: None
- Example:
deleteClone()
- Opcode: control_while
- Type: c
- Inputs:
- Inputs[condition]
- Inputs[substack]
- Example:
while(i.condition) {
...
}
- Opcode: control_for_each
- Type: c
- Inputs:
- Fields[variable]
- Inputs[value]
- Inputs[substack]
- Example:
for(f.variable, i.value) {
...
}
- Opcode: control_all_at_once
- Type: c
- Inputs:
- Inputs[substack]
- Example:
allAtOnce() {
...
}
- Opcode: control_get_counter
- Type: reporter
- Inputs: None
- Example:
counter()
- Opcode: control_clear_counter
- Type: stack
- Inputs: None
- Example:
clearCounter()
- Opcode: control_incr_counter
- Type: stack
- Inputs: None
- Example:
incrCounter()
- Opcode: sensing_touchingobject
- Type: reporter
- Inputs:
- Inputs[touchingobjectmenu(touching_menu)]
- Example:
touching(i.touchingobjectmenu(touching_menu))
- Opcode: sensing_touchingcolor
- Type: reporter
- Inputs:
- Inputs[color]
- Example:
touchingClr(i.color)
- Opcode: sensing_coloristouchingcolor
- Type: reporter
- Inputs:
- Inputs[color]
- Inputs[color2]
- Example:
clrTouchingClr(i.color, i.color2)
- Opcode: sensing_distanceto
- Type: reporter
- Inputs:
- Inputs[distancetomenu(distance_menu)]
- Example:
distanceto(i.distancetomenu(distance_menu))
- Opcode: sensing_askandwait
- Type: stack
- Inputs:
- Inputs[question]
- Example:
ask(i.question)
- Opcode: sensing_answer
- Type: reporter
- Inputs: None
- Example:
answer()
- Opcode: sensing_keypressed
- Type: reporter
- Inputs:
- Inputs[key_option(key_menu)]
- Example:
keypressed(i.key_option(key_menu))
- Opcode: sensing_mousedown
- Type: reporter
- Inputs: None
- Example:
mouse()
- Opcode: sensing_mousex
- Type: reporter
- Inputs: None
- Example:
mouseX()
- Opcode: sensing_mousey
- Type: reporter
- Inputs: None
- Example:
mouseY()
- Opcode: sensing_setdragmode
- Type: stack
- Inputs:
- Fields[drag_mode{draggable;not draggable}]
- Example:
setdragmode(f.drag_mode{draggable;not draggable})
- Opcode: sensing_loudness
- Type: reporter
- Inputs: None
- Example:
loudness()
- Opcode: sensing_timer
- Type: reporter
- Inputs: None
- Example:
timer()
- Opcode: sensing_resettimer
- Type: stack
- Inputs: None
- Example:
resetTime()
- Opcode: sensing_of
- Type: reporter
- Inputs:
- Fields[property{x position;y position;direction;costume #;costume name;size;volume}]
- Inputs[object(sensingobj_menu)]
- Example:
getAttribute(f.property{x position;y position;direction;costume #;costume name;size;volume}, i.object(sensingobj_menu))
- Opcode: sensing_current
- Type: reporter
- Inputs:
- Fields[currentmenu{year;month;date;day of week;hour;minute;second}]
- Example:
current(f.currentmenu{year;month;date;day of week;hour;minute;second})
- Opcode: sensing_dayssince2000
- Type: reporter
- Inputs: None
- Example:
dayssince2000()
- Opcode: sensing_username
- Type: reporter
- Inputs: None
- Example:
username()
- Opcode: operator_add
- Type: reporter
- Inputs:
- Inputs[num1]
- Inputs[num2]
- Example:
add(i.num1, i.num2)
- Opcode: operator_subtract
- Type: reporter
- Inputs:
- Inputs[num1]
- Inputs[num2]
- Example:
subtract(i.num1, i.num2)
- Opcode: operator_multiply
- Type: reporter
- Inputs:
- Inputs[num1]
- Inputs[num2]
- Example:
multiply(i.num1, i.num2)
- Opcode: operator_divide
- Type: reporter
- Inputs:
- Inputs[num1]
- Inputs[num2]
- Example:
divide(i.num1, i.num2)
- Opcode: operator_random
- Type: reporter
- Inputs:
- Inputs[from]
- Inputs[to]
- Example:
random(i.from, i.to)
- Opcode: operator_lt
- Type: reporter
- Inputs:
- Inputs[operand1]
- Inputs[operand2]
- Example:
lt(i.operand1, i.operand2)
- Opcode: operator_equals
- Type: reporter
- Inputs:
- Inputs[operand1]
- Inputs[operand2]
- Example:
equals(i.operand1, i.operand2)
- Opcode: operator_gt
- Type: reporter
- Inputs:
- Inputs[operand1]
- Inputs[operand2]
- Example:
gt(i.operand1, i.operand2)
- Opcode: operator_and
- Type: reporter
- Inputs:
- Inputs[operand1[bool]]
- Inputs[operand2[bool]]
- Example:
and(i.operand1[bool], i.operand2[bool])
- Opcode: operator_or
- Type: reporter
- Inputs:
- Inputs[operand1[bool]]
- Inputs[operand2[bool]]
- Example:
or(i.operand1[bool], i.operand2[bool])
- Opcode: operator_not
- Type: reporter
- Inputs:
- Inputs[operand[bool]]
- Example:
not(i.operand[bool])
- Opcode: operator_join
- Type: reporter
- Inputs:
- Inputs[string1]
- Inputs[string2]
- Example:
join(i.string1, i.string2)
- Opcode: operator_letter_of
- Type: reporter
- Inputs:
- Inputs[letter]
- Inputs[string]
- Example:
getLetter(i.letter, i.string)
- Opcode: operator_length
- Type: reporter
- Inputs:
- Inputs[string]
- Example:
length(i.string)
- Opcode: operator_contains
- Type: reporter
- Inputs:
- Inputs[string1]
- Inputs[string2]
- Example:
contains(i.string1, i.string2)
- Opcode: operator_mod
- Type: reporter
- Inputs:
- Inputs[num1]
- Inputs[num2]
- Example:
mod(i.num1, i.num2)
- Opcode: operator_round
- Type: reporter
- Inputs:
- Inputs[num]
- Example:
round(i.num)
- Opcode: operator_mathop
- Type: reporter
- Inputs:
- Fields[operator{abs;floor;ceiling;sqrt;sin;cos;tan;asin;acos;atan;ln;log;e ^;10 ^}]
- Inputs[num]
- Example:
mathop(f.operator{abs;floor;ceiling;sqrt;sin;cos;tan;asin;acos;atan;ln;log;e ^;10 ^}, i.num)
- Opcode: data_setvariableto
- Type: stack
- Inputs:
- Fields[variable{...}]
- Inputs[value]
- Example:
setvar(f.variable{...}, i.value)
- Opcode: data_changevariableby
- Type: stack
- Inputs:
- Fields[variable{...}]
- Inputs[value]
- Example:
changevar(f.variable{...}, i.value)
- Opcode: data_showvariable
- Type: stack
- Inputs:
- Fields[variable{...}]
- Example:
showvar(f.variable{...})
- Opcode: data_hidevariable
- Type: stack
- Inputs:
- Fields[variable{...}]
- Example:
hidevar(f.variable{...})
- Opcode: data_addtolist
- Type: stack
- Inputs:
- Inputs[item]
- Fields[list]
- Example:
listAdd(i.item, f.list)
- Opcode: data_deleteoflist
- Type: stack
- Inputs:
- Inputs[index]
- Fields[list]
- Example:
listDelete(i.index, f.list)
- Opcode: data_deletealloflist
- Type: stack
- Inputs:
- Fields[list]
- Example:
listDeleteAll(f.list)
- Opcode: data_insertatlist
- Type: stack
- Inputs:
- Fields[ack:i.item]
- Inputs[index]
- Fields[list]
- Example:
listInsert(stack:i.item, i.index, f.list)
- Opcode: data_replaceitemoflist
- Type: stack
- Inputs:
- Inputs[index]
- Fields[list]
- Inputs[item]
- Example:
listReplace(i.index, f.list, i.item)
- Opcode: data_itemoflist
- Type: reporter
- Inputs:
- Inputs[index]
- Fields[list]
- Example:
getItem(i.index, f.list)
- Opcode: data_itemnumoflist
- Type: reporter
- Inputs:
- Inputs[item]
- Fields[list]
- Example:
getItemNum(i.item, f.list)
- Opcode: data_lengthoflist
- Type: reporter
- Inputs:
- Fields[list]
- Example:
listLength(f.list)
- Opcode: data_listcontainsitem
- Type: reporter
- Inputs:
- Fields[list]
- Inputs[item]
- Example:
listContains(f.list, i.item)
- Opcode: data_showlist
- Type: stack
- Inputs:
- Fields[list]
- Example:
listShow(f.list)
- Opcode: data_hidelist
- Type: stack
- Inputs:
- Fields[list]
- Example:
listHide(f.list)
- Opcode: pen_clear
- Type: stack
- Inputs: None
- Example:
penClear()
- Opcode: pen_stamp
- Type: stack
- Inputs: None
- Example:
stamp()
- Opcode: pen_penDown
- Type: stack
- Inputs: None
- Example:
penDown()
- Opcode: pen_penUp
- Type: stack
- Inputs: None
- Example:
penUp()
- Opcode: pen_setPenColorToColor
- Type: stack
- Inputs:
- Inputs[color]
- Example:
hexPen(i.color)
- Opcode: pen_changePenColorParamBy
- Type: stack
- Inputs:
- Inputs[color_param{color;saturation;brightness;transparency}]
- Inputs[value]
- Example:
changePen(i.color_param{color;saturation;brightness;transparency}, i.value)
- Opcode: pen_setPenColorParamTo
- Type: stack
- Inputs:
- Inputs[color_param(pen_menu)]
- Inputs[value]
- Example:
setPen(i.color_param(pen_menu), i.value)
- Opcode: pen_changePenSizeBy
- Type: stack
- Inputs:
- Inputs[size]
- Example:
changePenSize(i.size)
- Opcode: pen_setPenSizeTo
- Type: stack
- Inputs:
- Inputs[size]
- Example:
setPenSize(i.size)
- Opcode: motion_goto_menu
- Type: reporter
- Inputs:
- Fields[to]
- Example:
goto_menu(f.to)
- Opcode: motion_glideto_menu
- Type: reporter
- Inputs:
- Fields[to]
- Example:
glideto_menu(f.to)
- Opcode: motion_pointtowards_menu
- Type: reporter
- Inputs:
- Fields[towards]
- Example:
point_towards_menu(f.towards)
- Opcode: looks_costume
- Type: reporter
- Inputs:
- Fields[costume]
- Example:
costume_menu(f.costume)
- Opcode: looks_backdrops
- Type: reporter
- Inputs:
- Fields[backdrop]
- Example:
backdrop_menu(f.backdrop)
- Opcode: sounds_sounds_menu
- Type: reporter
- Inputs:
- Fields[sound_menu]
- Example:
sound_menu(f.sound_menu)
- Opcode: control_create_clone_of_menu
- Type: reporter
- Inputs:
- Fields[clone_option]
- Example:
clone_menu(f.clone_option)
- Opcode: sensing_touchingobjectmenu
- Type: reporter
- Inputs:
- Fields[touchingobjectmenu]
- Example:
touching_menu(f.touchingobjectmenu)
- Opcode: sensing_distancetomenu
- Type: reporter
- Inputs:
- Fields[distancetomenu]
- Example:
distance_menu(f.distancetomenu)
- Opcode: sensing_keyoptions
- Type: reporter
- Inputs:
- Fields[key_option]
- Example:
key_menu(f.key_option)
- Opcode: sensing_of_object_menu
- Type: reporter
- Inputs:
- Fields[object]
- Example:
sensingobj_menu(f.object)
- Opcode: pen_menu_colorParam
- Type: reporter
- Inputs:
- Fields[colorParam]
- Example:
pen_menu(f.colorParam)