Creates a 4 sided object
rect
Last code needed (yellow in color) to draw your sprite
drawSprites
Code to make movement to the right
sprite.x=sprite.x+1
To control a sprite, you must have this code inside your function
If
sprite.x=sprite.x+1
sprite moves to the right
Ellipse
Code that can change where a sprite is from left to right
sprite.x
Code to make a sprite move up
sprite.y=sprite.y-1
Code that makes it so something happens when you hold down a key
keyDown
sprite.rotation=sprite.rotation-5
Sprite will rotate counterclockwise
The third number after you create your shape controls this
Width
Code that can change which direction your sprite is facing and turn it around
Sprite.rotation
All movement has to happen inside this code
Function
Keeps track of the location of the mouse from left to right.
World.mouseX
sprite.y=sprite.y(randomNumber 0,10)
Sprite will shake up and down in a random manner
Put this above your shape code to change its color
Fill
Replaces a number and allows you to change the number at will
Variables
This must be inside the Function in order for actual movement to happen.
drawSprite
6 (Coding, Speech, Computer Apps, Digital Media, Audio Visual Production, Visual Production at the High School)
if (keydown(space)){
sprite.x=sprite.x-3}
Sprite will move to the left when the spacebar is pressed.
Code that Can Create any multi-sided shape you want.
Code that can Make Your Sprites ¨see through¨
Alpha
Allows someone to figure out if something is true or false in their code
Boolean Expression
if (World.mouseY>200)
( sprite.x=sprite.x-1)
else (sprite.x=sprite.x+1)
If the mouse is on the bottom of the screen, the sprite will move the left, if the mouse is near the top it'll move to the right.