# Knee of the Bee - 1p/2p co-op bee catching

**URL:** https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374
**Category:** Show & Tell
**Tags:** game
**Created:** [November 11, 2020, 7:34pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374 "2020-11-11T19:34:07Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)
#### Post date: [November 11, 2020, 7:34pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/1 "2020-11-11T19:34:07Z")

</div>

Bees are swarming and you want to start a farm. Don your bee suit and grab a net. Be careful of the red ‘killer’ bees.

Round-based with increasing difficulty.

> **[Knee of the Bee](https://arcade.makecode.com/95017-21290-77333-12960)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I put a pause on the net animation so it would complete the animation, but it seems to be queuing the animations? I tried to throw a ‘Stop all animations’ in a few different places, but it doesn’t seem to work, maybe I’m using it wrong.

I’d like to add a versus mode with no threshold where you just compete for a high score.  
I would also like to improve the menu, but that seems like a lot of unnecessary code.

Also I seemed to break something by setting score to my combined score variable. Not a big deal, but I am curious if there’s a way to do that nicely so you can see a 2p high score across rounds.

Criticism is appreciated.

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [November 11, 2020, 10:31pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/2 "2020-11-11T22:31:34Z")

</div>

This is such a fun game and very addictive. To stop the queuing of the animations, I just added two variables that check whether the two heros are already swinging the net.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/1f571f483aa471dabf70193dc0eca89e97dc38c3.png)

> **[Knee of the Bee (cosmos)](https://arcade.makecode.com/29435-56521-92895-83070)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)
#### Post date: [November 12, 2020, 2:10pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/3 "2020-11-12T14:10:49Z")

</div>

Thanks!

I like this logic of this fix, but it doesn’t seem to work for me. I tried with your version and I also tried updating my own code. I’m mashing space bar on the keyboard(a) and if I let go it keeps swinging for a few swings.

The reality is that it was only an issue when rounds ended and in 2p mode because the net would keep swinging, but I threw in a few lines to destroy and re-initialize the net.

---

<div class="post-metadata">

### Author: ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)
#### Post date: [November 12, 2020, 2:18pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/4 "2020-11-12T14:18:23Z")

</div>

Really nice co-op game! I do competition games because I can’t think of anything co-op

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [November 12, 2020, 7:30pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/5 "2020-11-12T19:30:51Z")

</div>

Do you mind if I take a look at your version?

---

<div class="post-metadata">

### Author: ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)
#### Post date: [November 13, 2020, 4:55pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/6 "2020-11-13T16:55:52Z")

</div>

I tried both of the below (for the giggles) and it still seems to queue the animations. Maybe it’s my laptop latency/fps?

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/975083b82a2c619e66934a8d22d10983d809e82f.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c5f85efb8133d11221e775c76468ea0117a43b94.png)

---

<div class="post-metadata">

### Author: ![SPerkins25](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@SPerkins25](https://forum.makecode.com/u/SPerkins25)
#### Post date: [November 13, 2020, 5:19pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/7 "2020-11-13T17:19:31Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/40846c7a2572174a4d4322d40abb6d2ea71d2d4e.png)

I think the queueing is caused by the pause block.  
You can experiment with using the game timer instead of the pause block to get similar results (although not perfect as the first A press of a game doesn’t do anything)

---

<div class="post-metadata">

### Author: ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)
#### Post date: [November 13, 2020, 11:07pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/8 "2020-11-13T23:07:03Z")

</div>

Very nice, thank you! That one definitely works. I added `set swingNet1 to time since start(ms)` to the `On Start` block and it’s not really noticeable.

I’m going to try out the BlockMenu extension and potentially add the versus mode, but the animation cancel issue was hurting my brain.

---

<div class="post-metadata">

### Author: ![andrew-ski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrew-ski/32/1774_2.png) [@andrew-ski](https://forum.makecode.com/u/andrew-ski)
#### Post date: [November 14, 2020, 8:48pm UTC](https://forum.makecode.com/t/knee-of-the-bee-1p-2p-co-op-bee-catching/4374/9 "2020-11-14T20:48:06Z")

</div>

Updates complete!  
Added:  
Menu-Blocks Extension  
Two-Player Versus mode(No threshold)  
Two-Player Co-Op Session High Score tracking

Bug Fix:  
Net swing queuing animation resolved.

> **[Knee of the Bee v1.1](https://arcade.makecode.com/55620-07077-04525-64834)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
