Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Step 10 and 21 in 'Collect the Clovers' #6354

Merged
merged 4 commits into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions docs/tutorials/collect-the-clovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ and drag it into the empty ``||game(noclick):on game update [5000]ms||`` contain


```blocks
let projectile: Sprite = null
game.onUpdateInterval(5000, function () {
//@highlight
clover = sprites.createProjectileFromSide(assets.image`collect`, 50, 50)
let clover = sprites.createProjectileFromSide(assets.image`collect`, 50, 50)
})
```

Expand Down Expand Up @@ -268,7 +267,7 @@ block.

**Random** numbers are numbers that don't appear to have a predictable pattern. Using our `random` block, you'll be given a number between the minimum and maximum that you set, but you won't know which number will be chosen beforehand.

This number is rechosen every time the block runs, and each time you may randomly end up with a number that is either the same or different than the last.
This number is chosen again every time the block runs, and each time you may randomly end up with a number that is either the same or different than the last.

hint~

Expand Down Expand Up @@ -616,25 +615,6 @@ and choose **duplicate**.
_Don’t worry if it looks disabled, we’ll fix that._


## {Step 20 - Add Overlaps behavior for Bee @fullscreen}

**We need an overlap behavior for the bee**

- :mouse pointer: Right-click on the the<br/>
``||sprites(noclick):on sprite overlaps||`` <br/>
container that's already in your workspace.
```blocks
sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
otherSprite.destroy(effects.confetti, 100)
music.baDing.play()
info.changeScoreBy(1)
})
```
and choose **duplicate**.

_Don’t worry if it looks disabled, we’ll fix that._


- :mouse pointer: In the copied <br/>
``||sprites(noclick):on sprite overlaps||`` <br/>
block, click the kind ``||sprites:Projectile||`` and change it to ``||sprites:Enemy||``.
Expand Down
Loading