Set Sprite Property

Make a sprite store the kind of number you say.

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 right side of the screen.

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

See also

turn, brightness, change sprite property, get sprite property

Edit this page on GitHub