motion

changeXPosBy

// Change a sprite's x position by a given amount
self.x += 10;
x position10changeby

changeXPosBy

if on edge, bounce

changeYPosBy

// Change a sprite's y position by a given amount
self.y += 10;
y position10changeby

direction

// Get the current direction the sprite is pointing in degrees
self.direction;
direction

glide

// Glide to a specified (x, y) coordinate over a specified duration in seconds
self.glide(1, 0, 1);
100glidesecs to x:y:

goToXY

// Set the sprite's position to the specified (x, y) coordinates immediately
self.goTo(0, 0);
00go to x:y:

goTowards

// Go to the position of another specified sprite or the mouse pointer
self.goTowards(self);
selfgo towards

move

// Move a sprite by 10 steps
self.move(10);
10movesteps

pointInDirection

// Point the sprite in a specified direction in degrees (0 is up, 90 is right)
self.pointInDirection(90);
90°point in direction

pointToXY

// Point the sprite towards a specified (x, y) coordinate
self.pointTo(30, 30);
3030point to x:y:

pointTowards

// Point the sprite towards another specified sprite or the mouse pointer
self.pointTowards(self);
selfpoint towards

setRotationStyle

// Set the sprite's rotation style (e.g. all around, left-right, or dont rotate)
self.setRotationStyle("all around");
all aroundset rotation style

setXPosTo

// Set the sprite's x position to the specified value
self.x = 10;
x position10setto

setYPosTo

// Set the sprite's y position to the specified value
self.y = 10;
y position10setto

turnLeft

// Turn the sprite counter-clockwise by the given number of degrees
self.turnLeft(15);
15turn leftdegress

turnRight

// Turn the sprite clockwise by the given number of degrees
self.turnRight(15);
15turn rightdegress

xPos

// Get the current x position of the sprite
self.x;
x position

yPos

// Get the current y position of the sprite
self.y;
y position