pxt-calliope/docs/reference/game/position.md
2016-03-25 16:47:20 -07:00

604 B

Position

The game library

Create sprite

Reports the x or y position of a sprite on the LED screen

Block Editor

Reports the x position of a sprite on the LED screen

KindScript

Reports the x position of a sprite on the LED screen

export function x(_this: micro_bitSprites.LedSprite) : number

Reports the y position of a sprite on the LED screen

export function y(_this: micro_bitSprites.LedSprite) : number

Lessons

game of chance | game counter