Sprites
Movement
Control
What's the Code Mean?
Random
100

Makes Sprites Bigger

sprite.scale

100

All sprite movement happens inside this code

function (draw)

100

This code is needed to check and see when something happens, there is a response (All control happens inside this code)

If

100

sprite.x=sprite.x+2

Sprite will move to the right

100
What age did Mr. Green's son turn on May 1st?

1

200

Place you find, upload, or change your sprites

Animations Tab

200

A sprite moves up

sprite.y=sprite.y-1 OR spriteVelocity.y=-1

200

code that checks if you pressing on a button

keyDown

200

sprite.y=sprite.y-1

sprite.x=sprite.x-1

Sprite is moving down and to the left

200

How many days are left in school (counting today) not counting half days?

10

300

Change the angle of your sprite

sprite.rotation

300

If you're code is correct, and your sprites are not moving, it's usually because you forgot to put this inside the function

drawSprite

300

Add this to your if when you want to have an opposite reaction to your action

Else

300

If {(sprite.y<0)

spriteVelocity.y=5}

If the sprite reaches the top of the screen, it will go down.

300

Which TWO nationally televised sports have their playoffs going on right now?

NHL and NBA (Hockey and Basketball)

400

3 Pieces of code needed to create a sprite on the screen.

Var Sprite

Sprite.setAnimation

drawSprite

400

Another way of create sprite.x=sprite.x+1

SpriteVelocityx=1

400

code that checks where your mouse is located left to right

World.mousex

400

  if (sprite.isTouching(sprite2)) {

    sprite2.x = 400;

    sprite2.y = randomNumber(1, 400);

    score = score + 1;

  }

If sprite touches sprite 2, then sprite 2 will start over at the right side of the screen, at a random y, and score will go up by 1.

400

What is the name of the coding language we are using?

Java Script

500

Lets you see the Sprites Hit Box

sprite.SetCollider

500

Code that causes two sprites that are moving at each other to hit and move the opposite directions

sprite.bounceoff

500
Code that can change whether or not you can see a sprite IF a button is pressed.

sprite.visible

500

  player.velocityY = player.velocityY + .5

if (keyDown("up")) {

    player.velocityY = -1;

  }

  if (keyDown("left")) {

    player.velocityX = player.velocityX - .5;

  }

  if (keyDown("right")) {

    player.velocityX = player.velocityX + .5;

  }

Player naturally moves down, speeding up as you fall

If you press the up button, the player moves up.

If you press the left button, the player accelerates towards the left

If you press the right button, the player accelerates towards the right

500

What is Mr. Green's Shoe Size?

14/15's