# Plants Vs Zombies

**URL:** https://forum.makecode.com/t/plants-vs-zombies/18941
**Category:** Collaboration
**Tags:** music, art, make, game, demo
**Created:** [April 4, 2023, 3:02pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941 "2023-04-04T15:02:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 4, 2023, 3:02pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/1 "2023-04-04T15:02:26Z")

</div>

> **[Pvz](https://arcade.makecode.com/S72223-56281-46522-70851)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [April 5, 2023, 3:44pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/2 "2023-04-05T15:44:01Z")

</div>

Oh no! You have a problem. The block **call animate** needs to be on the bottom of the \*\*on start block.

---

<div class="post-metadata">

### Author: ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)
#### Post date: [April 5, 2023, 3:45pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/3 "2023-04-05T15:45:32Z")

</div>

put the “animate” fonction after creating the sprites

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 5, 2023, 3:53pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/4 "2023-04-05T15:53:13Z")

</div>

I need help with making it playable.

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 5, 2023, 5:31pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/5 "2023-04-05T17:31:47Z")

</div>

> **[Pvz](https://arcade.makecode.com/34829-52086-04685-55192)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 5, 2023, 11:21pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/6 "2023-04-05T23:21:19Z")

</div>

Can someone help with the plants seeing the zombies to shoot them?

---

<div class="post-metadata">

### Author: ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)
#### Post date: [April 6, 2023, 4:25pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/7 "2023-04-06T16:25:35Z")

</div>

You can use the arcade-sprite-util extension and use the thing that detects if a sprite is a certain distance in pixels from another sprite. Hopefully this helps ^.^

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 6, 2023, 4:53pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/8 "2023-04-06T16:53:59Z")

</div>

> **[Pvz](https://arcade.makecode.com/14831-21274-25774-94336)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Just music

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [April 6, 2023, 5:05pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/9 "2023-04-06T17:05:55Z")

</div>

When you guys click the link, do you see the game, or just a white screen?

---

<div class="post-metadata">

### Author: ![BoostedGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/boostedgames/32/29419_2.png) [@BoostedGames](https://forum.makecode.com/u/BoostedGames)
#### Post date: [April 6, 2023, 5:08pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/10 "2023-04-06T17:08:31Z")

</div>

the zombie vs plant in makecode very interesting

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 13, 2023, 4:30pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/11 "2023-04-13T16:30:07Z")

</div>

OK only got the shooting to work but it doesn’t hurt.

> **[Pvz](https://arcade.makecode.com/75745-95346-57768-75165)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 19, 2023, 9:44pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/12 "2023-04-19T21:44:24Z")

</div>

thanks

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [April 21, 2023, 4:36am UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/13 "2023-04-21T04:36:31Z")

</div>

Hp needs to be made and work

---

<div class="post-metadata">

### Author: ![Tuna007](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tuna007/32/22878_2.png) [@Tuna007](https://forum.makecode.com/u/Tuna007)
#### Post date: [May 1, 2023, 6:28pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/14 "2023-05-01T18:28:56Z")

</div>

i also made a plants vs zombies game

[https://arcade.makecode.com/S16960-60197-85409-57824](https://arcade.makecode.com/S16960-60197-85409-57824)

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [May 1, 2023, 9:18pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/15 "2023-05-01T21:18:09Z")

</div>

That is Very good but laggy, But if you want to help contribute to this one that would be nice.

---

<div class="post-metadata">

### Author: ![Tuna007](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tuna007/32/22878_2.png) [@Tuna007](https://forum.makecode.com/u/Tuna007)
#### Post date: [May 2, 2023, 4:18pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/16 "2023-05-02T16:18:12Z")

</div>

sure.

---

<div class="post-metadata">

### Author: ![Kite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kite/32/16600_2.png) [@Kite](https://forum.makecode.com/u/Kite)
#### Post date: [March 19, 2024, 10:25pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/17 "2024-03-19T22:25:13Z")

</div>

I have also made a plant vs zombies that was almost as same as yours. [https://arcade.makecode.com/S25068-81052-24059-78055](https://arcade.makecode.com/S25068-81052-24059-78055)

---

<div class="post-metadata">

### Author: ![Tuna007](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tuna007/32/22878_2.png) [@Tuna007](https://forum.makecode.com/u/Tuna007)
#### Post date: [April 16, 2024, 3:43am UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/18 "2024-04-16T03:43:28Z")

</div>

its really cool

---

<div class="post-metadata">

### Author: ![Kite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kite/32/16600_2.png) [@Kite](https://forum.makecode.com/u/Kite)
#### Post date: [July 4, 2024, 6:52pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/19 "2024-07-04T18:52:54Z")

</div>

Then that’s great.

---

<div class="post-metadata">

### Author: ![JaidenThePerson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaidentheperson/32/16250_2.png) [@JaidenThePerson](https://forum.makecode.com/u/JaidenThePerson)
#### Post date: [July 5, 2024, 4:23pm UTC](https://forum.makecode.com/t/plants-vs-zombies/18941/20 "2024-07-05T16:23:53Z")

</div>

I can’t help with coding, but I can help with art! I’m currently creating new sprite animations for the characters, updating some of the map, and adding some new plant sprites! Once I’m done I’ll post the link here for you to use

[Next page](https://forum.makecode.com/t/plants-vs-zombies/18941.md?page=2)
