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

14 lines
267 B
Markdown
Raw Permalink Normal View History

2016-03-26 00:47:20 +01:00
# Position
Reports the x position of a sprite on the LED screen
```sig
2016-03-26 00:47:20 +01:00
export function x(_this: micro_bitSprites.LedSprite) : number
```
Reports the y position of a sprite on the LED screen
```sig
2016-03-26 00:47:20 +01:00
export function y(_this: micro_bitSprites.LedSprite) : number
```