Find something out about a sprite.
let item: game.LedSprite = null;
item.get(LedSpriteProperty.X);
x
, how far up or down the sprite is on the screen (0
-4
)y
, how far left or right the sprite is on the screen (0
-4
)direction
, which way the sprite is pointing (this works the same way as the turn function)brightness
, how bright the LED sprite is (this works the same way as the brightness function)blink
, how fast the sprite is blinking (the bigger the number is, the faster the sprite is blinking)The number you asked for.
This program makes a sprite and shows the number of its brightness on the screen.
let ball = game.createSprite(0, 2);
basic.showNumber(ball.get(LedSpriteProperty.Brightness));
turn, brightness, change sprite property, set sprite property