2016-03-25 16:47:20 -07:00
|
|
|
# Change
|
|
|
|
|
|
|
|
Sprite will change the x position by this number
|
|
|
|
|
2016-04-18 08:33:09 -07:00
|
|
|
### Block Editor
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
![](/static/mb/change-0.png)
|
|
|
|
|
2016-04-18 08:33:09 -07:00
|
|
|
### JavaScript
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
Sprite will change the x position by this number
|
|
|
|
|
|
|
|
```
|
|
|
|
export function changeXBy(_this: micro_bitSprites.LedSprite, x: number)
|
|
|
|
```
|
|
|
|
|
|
|
|
Sprite will change the y position by this number
|
|
|
|
|
|
|
|
```
|
|
|
|
export function changeYBy(_this: micro_bitSprites.LedSprite, y: number)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Lessons
|
|
|
|
|
2016-04-13 08:27:45 -07:00
|
|
|
[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter)
|
2016-03-25 16:47:20 -07:00
|
|
|
|