Get Sprite Property

Change the kind of number you say for a sprite.

let item: game.LedSprite = null;
item.set(LedSpriteProperty.X, 0);

Parameters

Example

This program makes a sprite on the left side of the screen, waits two seconds (2000 milliseconds), and then moves it to the middle of the screen.

let ball = game.createSprite(0, 2);
basic.pause(2000);
ball.change(LedSpriteProperty.X, 2);

See also

turn, brightness, get sprite property, set sprite property

Edit this page on GitHub