2016-03-26 00:47:20 +01:00
|
|
|
# Change
|
|
|
|
|
|
|
|
The game library
|
|
|
|
|
|
|
|
### Change
|
|
|
|
|
|
|
|
Sprite will change the x position by this number
|
|
|
|
|
|
|
|
## Block Editor
|
|
|
|
|
|
|
|
![](/static/mb/change-0.png)
|
|
|
|
|
|
|
|
## KindScript
|
|
|
|
|
|
|
|
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 17:27:45 +02:00
|
|
|
[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter)
|
2016-03-26 00:47:20 +01:00
|
|
|
|