BlocosIA Wiki Editor

Control

Stack

wait ( ) seconds

Pauses. Decimals like 0.5 work.

C block

repeat ( )

Repeats the blocks inside a number of times.

C block

forever

Repeats the blocks inside forever (until the project stops).

C block

count [score] from ( ) to ( ) step ( ) while ⟨ ⟩

Counts from one number to another with the chosen step, storing it in a variable.

C block

repeat while ⟨ ⟩

Repeats while the condition is true.

C block

if ⟨ ⟩ then

Runs the blocks inside only if the condition is true.

C block

if ⟨ ⟩ then else

If the condition is true it runs the first part; otherwise the second.

C block

switch case of ( ) caso ( ) então default (else)

Holds other blocks inside.

Stack

wait until ⟨ ⟩

Waits until the condition becomes true.

C block

repeat until ⟨ ⟩

Repeats until the condition becomes true.

C block

for each [score] in list ( )

Runs the blocks inside once for each item of the list. On each loop, the variable gets the current item.

C block

for each [score] with index [score] in list ( )

Like "for each", but also stores the item position (1, 2, 3…) in another variable. Great for reading two parallel lists.

C block

for each [score] in list ( ) backwards

Goes through the list from the last item to the first.

C block

for each key [score] and value [score] in object ( )

Goes through an object (JSON): on each loop one variable gets the key and another the value. In a list, the key is the position.

Cap

break out of loop

Immediately ends the loop it is in (repeat, forever, repeat until, for each…). The script continues after the loop.

Cap

skip to next loop

Skips the rest of this loop and goes straight to the next one.

Cap

stop [all]

Stops all scripts in the project or only this one.

Stack

stop other scripts in sprite

Stops this sprite's other scripts.

Hat

when I start as a clone

Starts in every new clone. Use it to tell clones what to do.

Stack

create clone of [ ▾ ]

Creates a copy of a sprite (or of itself).

Stack

create clone of [ ▾ ] at x: ( ) y: ( )

Creates a clone right at x, y.

Stack

create clone of [ ▾ ] at the position of [ ▾ ]

Creates a clone at another sprite's position.

Cap

delete this clone

Deletes the clone running this script.