Creating Sprite
sprite(x, y, imgSrc, scale);
Sprite Actions
move(x, y, duration, onComplete);
forward(distance, duration, onComplete);
stop(clearQueue);
draggable();
setX(x);
setY(y);
say(text, color, backgroundColor, delay, onComplete);
touches(otherSprite);
hide();
show();
rotateBy(deg);
getA();
setA(deg);
pointTo(x, y);
scale(percentageX, percentageY, duration, onComplete);
onTouch(onCollision);
changeImage(imgSrc);
mirrorImage();
Callbacks
function update();
function onKeyDown(keyCode);
function onKeyUp(keyCode);
function onMouseMove(x, y);
function onMouseDown(x, y);
Sounds
playSound(src, onCompleted);
repeatSound(src, onCompleted);
stopSound(src);
Other
label(x, y, text, size, color, backgroundColor);
clear();
rand(max);
randX();
randY();
distance(x1, y1, x2, y2);
getMaxX();
getMaxY();
getContainer();
log(message);
Drawing
rect(x, y, width, height, lineWidth, lineColor, fillColor);
line(x1, y1, x2, y2, lineWidth, lineColor);
circle(x, y, r, lineWidth, color, fillColor);
clearCanvas();
getCanvas();