2016-03-26 00:47:20 +01:00
|
|
|
# Turn
|
|
|
|
|
|
|
|
The game library
|
|
|
|
|
|
|
|
Rotates a sprite to the right by a certain number of degrees
|
|
|
|
|
|
|
|
## Block Editor
|
|
|
|
|
|
|
|
Rotates a sprite to the right by a certain number of degrees
|
|
|
|
|
|
|
|
![](/static/mb/game-library/turn-0.png)
|
|
|
|
|
|
|
|
## KindScript
|
|
|
|
|
|
|
|
Rotates a sprite to the right by a certain number of degrees
|
|
|
|
|
|
|
|
```
|
|
|
|
export function turnRight(_this: micro_bitSprites.LedSprite, degrees: number)
|
|
|
|
```
|
|
|
|
|
|
|
|
Rotates a sprite to the left by a certain number of degrees
|
|
|
|
|
|
|
|
```
|
|
|
|
export function turnLeft(_this: micro_bitSprites.LedSprite, degrees: 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
|
|
|
|