Get Sprite Property

Find something out about a sprite.

let item: game.LedSprite = null;
item.get(LedSpriteProperty.X);

Parameters

Returns

The number you asked for.

Example

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));

See also

turn, brightness, change sprite property, set sprite property

Edit this page on GitHub