Makes Sprites Bigger
sprite.scale
All sprite movement happens inside this code
function (draw)
This code is needed to check and see when something happens, there is a response (All control happens inside this code)
If
sprite.x=sprite.x+2
Sprite will move to the right
1
Place you find, upload, or change your sprites
Animations Tab
A sprite moves up
sprite.y=sprite.y-1 OR spriteVelocity.y=-1
code that checks if you pressing on a button
keyDown
sprite.y=sprite.y-1
sprite.x=sprite.x-1
Sprite is moving down and to the left
How many days are left in school (counting today) not counting half days?
10
Change the angle of your sprite
sprite.rotation
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
Add this to your if when you want to have an opposite reaction to your action
Else
If {(sprite.y<0)
spriteVelocity.y=5}
If the sprite reaches the top of the screen, it will go down.
Which TWO nationally televised sports have their playoffs going on right now?
NHL and NBA (Hockey and Basketball)
3 Pieces of code needed to create a sprite on the screen.
Var Sprite
Sprite.setAnimation
drawSprite
Another way of create sprite.x=sprite.x+1
SpriteVelocityx=1
code that checks where your mouse is located left to right
World.mousex
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.
What is the name of the coding language we are using?
Java Script
Lets you see the Sprites Hit Box
sprite.SetCollider
Code that causes two sprites that are moving at each other to hit and move the opposite directions
sprite.bounceoff
sprite.visible
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
What is Mr. Green's Shoe Size?
14/15's