pxt-calliope/docs/reference/game/change.md

22 lines
385 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Change
Sprite will change the x position by this number
2016-04-18 17:33:09 +02:00
### Block Editor
2016-03-26 00:47:20 +01:00
![](/static/mb/change-0.png)
2016-04-18 17:33:09 +02:00
### JavaScript
2016-03-26 00:47:20 +01: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)
```