# W1ld : Cats \*UPDATE\*

**URL:** <https://forum.makecode.com/t/w1ld-cats-update/3162>\
**Category:** Help\
**Tags:** game\
**Created:** [August 19, 2020, 2:47pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162 "2020-08-19T14:47:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 19, 2020, 2:47pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/1 "2020-08-19T14:47:35Z")

</div>

> **[W1ld : Cats](https://arcade.makecode.com/09808-67694-44768-09947)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Hello! I have fixed some things with the help of @shakao I am wondering if there is any way to destroy _only_ the enemy cat thats health bar is level 0? Since they are just dupicates of each other once 1 is destroyed, all of them are. If you could help that´d be fantastic! : )

**NEW LINK**

> **[W1ld : Cats](https://arcade.makecode.com/72170-26388-34266-39092)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

  
\*You can only defeat the enemies by holding ¨B¨ down, Glitches when you jump/fall while pressing left

---

<div class="post-metadata">

**Author:** ![livcheerful](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/livcheerful/32/3509_2.png) [@livcheerful](https://forum.makecode.com/u/livcheerful)\
**Post date:** [August 19, 2020, 4:26pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/2 "2020-08-19T16:26:31Z")

</div>

I love this 😮 The trees are so cool!

And yes, you can _totally_ destroy the enemies - in the status bar extension, there is an event “on status bar kind \_\_\_\_\_ zero \_\_\_\_\_”, which will give you a status bar when it’s at zero! Since you structured it well for this (having EnemyHealth and Health be different kinds), you can just destroy the sprite attached to the status bar (another block found in the status bar extension).

Here is what I did in your game, it worked for me, but you can try it out! Lemme know if it doesn’t work for you or if you have other questions 😃 😃 😃

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

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 19, 2020, 4:31pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/3 "2020-08-19T16:31:15Z")

</div>

Wow! Thank you so so so much!! This has saved me a LOT of much needed time!!

---

<div class="post-metadata">

**Author:** ![livcheerful](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/livcheerful/32/3509_2.png) [@livcheerful](https://forum.makecode.com/u/livcheerful)\
**Post date:** [August 19, 2020, 4:42pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/4 "2020-08-19T16:42:55Z")

</div>

yay I’m glad!

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 19, 2020, 4:47pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/5 "2020-08-19T16:47:19Z")

</div>

Is it possible to make it so the other cats wont spawn until you defeat the first one?

---

<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:** [August 19, 2020, 5:06pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/6 "2020-08-19T17:06:55Z")

</div>

Makes sense what the title to the game should be @Kat. Really nice!

---

<div class="post-metadata">

**Author:** ![livcheerful](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/livcheerful/32/3509_2.png) [@livcheerful](https://forum.makecode.com/u/livcheerful)\
**Post date:** [August 19, 2020, 5:13pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/7 "2020-08-19T17:13:22Z")

</div>

Hmmm there are different ways to do it depending on what rules you want to set for when the other cats will spawn. If:

1. You want to spawn them one after another, but only when the hero walks behind a bush:

- you should add a boolean variable that is true when an enemy already exists in the world. You should check this in your overlaps code, and set it to false when the enemy is destroyed  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b97649e20f7b2fcae97ee4465f92afb3d78bdc6a.png)

1. You want them to just come one after another, no matter where the hero is:

- you can spawn an enemy at the beginning, and in a "on destroyed of kind \_\_\_\_ " block, spawn another one

It could look something like this, plus calling the “spawn enemy” function in “on start”

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

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 19, 2020, 5:28pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/8 "2020-08-19T17:28:08Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![LcAtonal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lcatonal/32/16800_2.png) [@LcAtonal](https://forum.makecode.com/u/LcAtonal)\
**Post date:** [August 20, 2020, 6:55am UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/9 "2020-08-20T06:55:32Z")

</div>

You can infinite jump.

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 20, 2020, 12:04pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/10 "2020-08-20T12:04:23Z")

</div>

Yes. I have been having some issues with that. How would I go about fixing that?

---

<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:** [August 20, 2020, 12:19pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/11 "2020-08-20T12:19:10Z")

</div>

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

This kind of code should do it. When you jump, it’s not giving the vy velocity to jump in which is why it never goes down.

> **[W1ld : Cats Dreadmask197](https://arcade.makecode.com/52383-65771-72505-07533)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is the link you can use

---

<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:** [August 20, 2020, 12:19pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/12 "2020-08-20T12:19:52Z")

</div>

The first photo is the before and the second photo is the after

Before:After

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 20, 2020, 12:21pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/13 "2020-08-20T12:21:35Z")

</div>

Thanks! Im kinda new to Makecode. The blocks are different from the previous program I used.

---

<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:** [August 20, 2020, 12:22pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/14 "2020-08-20T12:22:02Z")

</div>

What program have you used previously

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 20, 2020, 12:28pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/15 "2020-08-20T12:28:45Z")

</div>

Scratch. I like certain things that it has that Makecode doesn´t but I like how Makecode is 8-bit. One feature that Scratch has that I wish Makecode had is the ¨backpack¨. It allows you to take code/sprites from one project to another

---

<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:** [August 20, 2020, 12:49pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/16 "2020-08-20T12:49:37Z")

</div>

That was to puzzling for me so I found arcade.makecode and it was fun

---

<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:** [August 20, 2020, 12:50pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/17 "2020-08-20T12:50:16Z")

</div>

I liked how arcade.makecode had javascript and python but I couldn’t find it on scratch tho

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [August 20, 2020, 12:52pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/18 "2020-08-20T12:52:39Z")

</div>

True.

---

<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:** [August 20, 2020, 2:05pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/19 "2020-08-20T14:05:28Z")

</div>

It looks like you need help with the cat images

---

<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:** [August 20, 2020, 2:05pm UTC](https://forum.makecode.com/t/w1ld-cats-update/3162/20 "2020-08-20T14:05:58Z")

</div>

BTW the Cat images you drew are really good

[Next page](https://forum.makecode.com/t/w1ld-cats-update/3162.md?page=2)
