Documentation

Categories

Models
World

Motion

20 Entries
Close
Block for move

move

Description

Move the model in the direction the specified number.

Parameters

  • steps

Block Name

move

JavaScript Function

move

View Example
Block for turnL

turnL

Description

Move the model anti-clockwise the given number of degrees.

Parameters

  • degrees

Block Name

turn ↶

JavaScript Function

turnL

View Example
Block for turnR

turnR

Description

Move the model clockwise the given number of degrees.

Parameters

  • degrees

Block Name

turn ↷

JavaScript Function

turnR

View Example
Block for pointDir

pointDir

Description

Point the actor in the given direction.

Parameters

  • deg

Block Name

point in direction

JavaScript Function

pointDir

View Example
Block for pointTo

pointTo

Description

Point the actor towards the mouse pointer or another actor.

Parameters

  • obj
  • skip

Block Name

point towards

JavaScript Function

pointTo

View Example
Block for go

go

Description

Move the actor's location relatively by the given x, , and z values.

Parameters

  • x
  • z

Block Name

go to x:

JavaScript Function

go

View Example
Block for goTo

goTo

Description

Set the actor's location to the given x, , and z values

Parameters

  • obj
  • skip

Block Name

go to

JavaScript Function

goTo

View Example
Block for glide

glide

Description

Set the actor's location to the given x, , and z values.

Parameters

  • secs
  • x
  • z

Block Name

glide

JavaScript Function

glide

View Example
Block for glideRel

glideRel

Description

Like go, except the transition between the current and destination location is animated with the animation length specified.

Parameters

  • secs
  • x
  • z

Block Name

glide

JavaScript Function

glideRel

View Example
Block for changeX

changeX

Description

Change the relative value of the actor's x location.

Parameters

  • x

Block Name

change x by

JavaScript Function

changeX

View Example
Block for setX

setX

Description

Set the value of the actor's x location.

Parameters

  • x

Block Name

set x to

JavaScript Function

setX

View Example
Block for changeY

changeY

Description

Change the relative value of the actor's y location.

Block Name

change by

JavaScript Function

changeY

View Example
Block for setY

setY

Description

Set the value of the actor's y location.

Block Name

set to

JavaScript Function

setY

View Example
Block for changeZ

changeZ

Description

Change the relative value of the actor's z location.

Parameters

  • z

Block Name

change z by

JavaScript Function

changeZ

View Example
Block for setZ

setZ

Description

Set the value of the actor's z location.

Parameters

  • z

Block Name

set z to

JavaScript Function

setZ

View Example
Block for bounce

bounce

Description

Stop the model from moving through other actors, this must be polled constantly to work.

Block Name

if on edge, bounce

JavaScript Function

bounce

View Example
Block for getX

getX

Description

Get the actor's x location

Block Name

x position

JavaScript Function

getX

View Example
Block for getY

getY

Description

Get the actor's y location

Block Name

position

JavaScript Function

getY

View Example
Block for getZ

getZ

Description

Get the actor's z location

Block Name

z position

JavaScript Function

getZ

View Example
Block for direction

direction

Description

Get the actor's direction (degrees)

Block Name

direction

JavaScript Function

direction

View Example

Looks

16 Entries
Close
Block for sayFor

sayFor

Description

Output a message from the actor in a speech bubble for the specified amount of time. There can only be one message at a time.

Parameters

  • text
  • secs

Block Name

say

JavaScript Function

sayFor

View Example
Block for say

say

Description

Output a message from the actor until another message is said.

Parameters

  • text

Block Name

say

JavaScript Function

say

View Example
Block for thinkFor

thinkFor

Description

Currently identical too sayFor.

Parameters

  • text
  • secs

Block Name

think

JavaScript Function

thinkFor

View Example
Block for think

think

Description

Currently identical to say.

Parameters

  • text

Block Name

think

JavaScript Function

think

View Example
Block for show

show

Description

Show the actor if hidden

Block Name

show

JavaScript Function

show

View Example
Block for hide

hide

Description

Hide the actor

Block Name

hide

JavaScript Function

hide

View Example
Block for costumeSet

costumeSet

Description

Switch to a costume given by the costume name

Parameters

  • model
  • skip

Block Name

set costume to

JavaScript Function

costumeSet

View Example
Block for costumeSwitch

costumeSwitch

Description

Switch to a costume at a given index

Parameters

  • costume

Block Name

switch costume to

JavaScript Function

costumeSwitch

View Example
Block for costumeNext

costumeNext

Description

Change the next costume with the order specified by the import order in the media viewer.

Block Name

next costume

JavaScript Function

costumeNext

View Example
Block for lookChange

lookChange

Description

Change either the colour (hue), brightness, or saturation by the given amount.

Parameters

  • effect
  • amount

Block Name

change

JavaScript Function

lookChange

View Example
Block for lookSet

lookSet

Description

Set either the colour (hue), brightness, or saturation to the given value.

Parameters

  • effect
  • amount

Block Name

set

JavaScript Function

lookSet

View Example
Block for colorSet

colorSet

Description

Set the colour of the actor to the specified colour

Parameters

  • col1

Block Name

set color to

JavaScript Function

colorSet

View Example
Block for sizeChange

sizeChange

Description

Change the size of the actor by the given amount

Parameters

  • amount

Block Name

change size by

JavaScript Function

sizeChange

View Example
Block for sizeSet

sizeSet

Description

Set the size of the actor

Parameters

  • amount

Block Name

set size to

JavaScript Function

sizeSet

View Example
Block for costumeIndex

costumeIndex

Description

Get the index of the current costume, useful in conjunction with costumeSwitch which takes a costume index.

Block Name

costume #

JavaScript Function

costumeIndex

View Example
Block for size

size

Description

Get the current size of the actor

Block Name

size

JavaScript Function

size

View Example

Sound

13 Entries
Close
Block for sound

sound

Description

Play through the sound media associated with the provided string until the sound is done / end of the program

Parameters

  • sound
  • skip

Block Name

play sound

JavaScript Function

sound

View Example
Block for soundDone

soundDone

Description

Play through the entire sound media associated with the provided string and wait.

Parameters

  • sound
  • skip

Block Name

play sound

JavaScript Function

soundDone

View Example
Block for soundStop

soundStop

Description

Stop playing the specified sound

Block Name

stop all sounds

JavaScript Function

soundStop

View Example
Block for playDrum

playDrum

Description

Play the specified percussion instrument for the specified number of beats

Parameters

  • drum
  • beats

Block Name

play drum

JavaScript Function

playDrum

View Example
Block for playRest

playRest

Description

Play nothing for the specified number of beats

Parameters

  • beats

Block Name

rest for

JavaScript Function

playRest

View Example
Block for playNote

playNote

Description

Play specific note for the specified number of beats

Parameters

  • note
  • beats

Block Name

play note

JavaScript Function

playNote

View Example
Block for setInstr

setInstr

Description

Set the instrument for the playNote function to the specified value

Parameters

  • ins

Block Name

set instrument to

JavaScript Function

setInstr

View Example
Block for changeVolume

changeVolume

Description

Change volume by provided amount

Parameters

  • amount

Block Name

change volume by

JavaScript Function

changeVolume

View Example
Block for setVolume

setVolume

Description

Set volume to the specified value

Parameters

  • amt

Block Name

set volume to

JavaScript Function

setVolume

View Example
Block for volume

volume

Description

Get the current volume value

Block Name

volume

JavaScript Function

volume

View Example
Block for changeTempo

changeTempo

Description

Change tempo by provided amount. Higher tempo means beats play faster.

Parameters

  • amount

Block Name

change tempo by

JavaScript Function

changeTempo

View Example
Block for setTempo

setTempo

Description

Set tempo to provided amount. Higher tempo means beats play faster.

Parameters

  • amt

Block Name

set tempo to

JavaScript Function

setTempo

View Example
Block for tempo

tempo

Description

Return the current tempo value

Block Name

tempo

JavaScript Function

tempo

View Example

Pen

11 Entries
Close
Block for clear

clear

Description

Remove all pen marks from the world

Block Name

clear

JavaScript Function

clear

View Example
Block for stamp

stamp

Description

Create a visual clone of your model that remains in the same location.

Block Name

stamp

JavaScript Function

stamp

View Example
Block for penDown

penDown

Description

Start drawing on the ground with the pen

Block Name

pen down

JavaScript Function

penDown

View Example
Block for penUp

penUp

Description

Stop drawing with the pen

Block Name

pen up

JavaScript Function

penUp

View Example
Block for setPenC

setPenC

Description

Set the colour of the pen to the specified value

Parameters

  • color

Block Name

set pen color to

JavaScript Function

setPenC

View Example
Block for changePenC

changePenC

Description

Change the colour of the pen by the specified colour provided as a hex string

Parameters

  • amount

Block Name

change pen color by

JavaScript Function

changePenC

View Example
Block for setPenN

setPenN

Description

Set the pen colour to a specific hex value

Parameters

  • num

Block Name

set pen color to

JavaScript Function

setPenN

View Example
Block for changePenS

changePenS

Description

Change the pen shade by the specified value

Parameters

  • amount

Block Name

change pen shade by

JavaScript Function

changePenS

View Example
Block for setPenS

setPenS

Description

Set the pen shade to the specified value

Parameters

  • amount

Block Name

set pen shade to

JavaScript Function

setPenS

View Example
Block for changePenSz

changePenSz

Description

Change the pen size by the specified value

Parameters

  • size

Block Name

change pen size by

JavaScript Function

changePenSz

View Example
Block for setPenSz

setPenSz

Description

Set the pen size to the specified value

Parameters

  • size

Block Name

set pen size to

JavaScript Function

setPenSz

View Example

CatDebug

7 Entries
Close
Block for variable_show

variable_show

Description

Show the given variable in the top left of the screen (updates automatically)

Parameters

  • varname

Block Name

show variable

JavaScript Function

variable_show

View Example
Block for variable_hide

variable_hide

Description

Hide the given variable in the top left of the screen, does nothing if the variable wasn’t shown in the first place.

Parameters

  • varname

Block Name

hide variable

JavaScript Function

variable_hide

View Example

timer

Description

Time in seconds since the start button was pressed.

Block Name

JavaScript Function

timer

View Example

getStat

Description

Get the value of a specifc stat

Parameters

  • stat

Block Name

JavaScript Function

getStat

View Example
Block for stat_show

stat_show

Description

Show a specific stat. Has the same behaviour as variable_show

Parameters

  • info

Block Name

show stat

JavaScript Function

stat_show

View Example

getGlobal

Description

Get a previously defined global variable. Allows actors to share variables.

Parameters

  • actN
  • varN

Block Name

JavaScript Function

getGlobal

View Example

setGlobal

Description

Set a global variable. The global variable is bound to a specific actor, but can be accessed from any actor.

Parameters

  • actN
  • varN
  • valI

Block Name

JavaScript Function

setGlobal

View Example

Events

5 Entries
Close
Block for clicked

clicked

Description

Event triggered when the actor or the world is clicked.

Parameters

  • what

Block Name

when

JavaScript Function

clicked

View Example
Block for when

when

Description

Event triggered when either loudness (see volume in sound) or timer (see timer in sensing) reaches a certain value.

Parameters

  • what
  • amount

Block Name

when

JavaScript Function

when

View Example
Block for message

message

Description

Event triggered when specific message received from broadcast.

Parameters

  • signal

Block Name

when I receive

JavaScript Function

message

View Example
Block for broadcast

broadcast

Description

Broadcast a message that can be received by any other actor.

Parameters

  • signal

Block Name

broadcast

JavaScript Function

broadcast

View Example
Block for broadcastW

broadcastW

Description

Broadcast a signal(string) that can received by any other actor and then wait for given time.

Parameters

  • signal

Block Name

broadcast

JavaScript Function

broadcastW

View Example

Control

4 Entries
Close

halt

Description

Stop the world, if the provided value is 0 the step is considered failed, otherwise the user is awarded the specified amount of XP.

Parameters

  • what

Block Name

JavaScript Function

halt

View Example

cloned

Description

Function called when actor is started as clone

Block Name

JavaScript Function

cloned

View Example

cloneAdd

Description

Create a clone of the actor. Retains costume, position, and other properties.

Block Name

JavaScript Function

cloneAdd

View Example

cloneRm

Description

Remove the clone from within cloned.

Block Name

JavaScript Function

cloneRm

View Example

Sensing

12 Entries
Close
Block for touch

touch

Description

Return a boolean if the actor is touching the mouse or another actor

Parameters

  • obj
  • skip

Block Name

touching

JavaScript Function

touch

View Example
Block for distance

distance

Description

Return the Euclidean distance between the actor and the mouse or another actor.

Parameters

  • obj
  • skip

Block Name

distance to

JavaScript Function

distance

View Example
Block for prompt

prompt

Description

Return a string containing the user response to the supplied question.

Parameters

  • text

Block Name

prompt

JavaScript Function

prompt

View Example
Block for keyp

keyp

Description

Return if the specified key has been pressed

Parameters

  • keylist

Block Name

key

JavaScript Function

keyp

View Example
Block for moused

moused

Description

Return if mouse button pressed

Block Name

mouse down

JavaScript Function

moused

View Example
Block for mousex

mousex

Description

Return the x position of the mouse pointer

Block Name

mouse x

JavaScript Function

mousex

View Example
Block for mousey

mousey

Description

Return the y position of the mouse pointer

Block Name

mouse

JavaScript Function

mousey

View Example
Block for resetTimer

resetTimer

Description

Reset the timer to 0

Block Name

reset timer

JavaScript Function

resetTimer

View Example

actorData

Description

Return various data on any actor. Available properties are x, y, and z positions, direction, costume index, costume name, size, and volume.

Parameters

  • wh
  • acti
  • skip

Block Name

JavaScript Function

actorData

View Example
Block for timed

timed

Description

Time in seconds since the start button was pressed.

Parameters

  • wh

Block Name

current

JavaScript Function

timed

View Example
Block for days

days

Description

Return the number of days since January 1st, 2000

Block Name

days since 2000

JavaScript Function

days

View Example
Block for user

user

Description

Return the username of your account, useful for personalised worlds / storylines

Block Name

username

JavaScript Function

user

View Example

Operators

3 Entries
Close

mod

Description

Do a modulus operation on amount1 with amount2. For example 5 % 3 = 2

Parameters

  • amount
  • amount2

Block Name

JavaScript Function

mod

View Example
Block for round

round

Description

Round a decimal number to the closest integer (whole number)

Parameters

  • amount

Block Name

round

JavaScript Function

round

View Example

math_op

Description

Return the absolute value of the given number

Parameters

  • mop
  • amount

Block Name

JavaScript Function

math_op

View Example