Updated Linux (and Windows) instructions
This commit is contained in:
@ -2,7 +2,12 @@
|
||||
|
||||
Reports true if sprite is touching specified sprite
|
||||
|
||||
```blocks
|
||||
let matter = game.createSprite(2, 2);
|
||||
let antimatter = game.createSprite(2, 2);
|
||||
if (matter.isTouching(antimatter)) {
|
||||
basic.pause(500);
|
||||
basic.clearScreen();
|
||||
basic.showString("BOOM!");
|
||||
}
|
||||
```
|
||||
export function isTouching(_this: micro_bitSprites.LedSprite, other: micro_bitSprites.LedSprite) : boolean
|
||||
```
|
||||
|
||||
|
@ -1,8 +1,22 @@
|
||||
# Stop Animation
|
||||
|
||||
Cancels the current animation and clears other pending animations .
|
||||
Stop the animation that is playing and any animations that are waiting to
|
||||
play.
|
||||
|
||||
```sig
|
||||
led.stopAnimation()
|
||||
```
|
||||
|
||||
### Example
|
||||
|
||||
This program...
|
||||
|
||||
```blocks
|
||||
basic.showString("STOP ME! STOP ME! PLEASE, WON'T SOMEBODY STOP ME?");
|
||||
input.onButtonPressed(Button.B, () => {
|
||||
led.stopAnimation();
|
||||
});
|
||||
'```
|
||||
### See Also
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user