# How to make turrets shoot like a bullet hell type game

**URL:** <https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248>\
**Category:** Help\
**Created:** [December 6, 2021, 6:31pm UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248 "2021-12-06T18:31:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oppa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/oppa/32/5457_2.png) [@Oppa](https://forum.makecode.com/u/Oppa)\
**Post date:** [December 6, 2021, 6:31pm UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248/1 "2021-12-06T18:31:49Z")

</div>

> **[bullet hell game](https://arcade.makecode.com/57035-00461-34543-65112)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

so basically I’m making a type of bullet hell game where you can choose to become one of 5 ships (1 is currently fully made, the others which I haven’t added don’t work yet) so I’m just trying to figure out how to make turrets" shoot at player with like a Touhou kind of vibe.

another thing I’m wondering is how to like make my “turrets” spawn one time only so like if you have cleared a room, makes enemies not spawn anymore if you visit that room again.

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [December 7, 2021, 12:46am UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248/2 "2021-12-07T00:46:43Z")

</div>

hi, i’ve done something like this before in my earlier tests of my game Requiem, where I created a turret that only fires when it can see enemies. You can modify the code to your liking.

 ![Screenshot 2021-12-07 at 7.30.04 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8f0e5bd7f286b2a73841ba179c04a1a3a211303a.png)

And for your second question, I hope i’m not wrong, but you can just change the tilemap if the player overlaps with a certain tile. That should hopefully not respawn enemies.

---

<div class="post-metadata">

**Author:** ![Oppa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/oppa/32/5457_2.png) [@Oppa](https://forum.makecode.com/u/Oppa)\
**Post date:** [December 10, 2021, 4:01pm UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248/3 "2021-12-10T16:01:27Z")

</div>

alright thank you

---

<div class="post-metadata">

**Author:** ![Oppa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/oppa/32/5457_2.png) [@Oppa](https://forum.makecode.com/u/Oppa)\
**Post date:** [December 14, 2021, 6:33pm UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248/4 "2021-12-14T18:33:06Z")

</div>

what is combat form variable linked with, and the yellow block extension btw?

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [December 15, 2021, 6:52am UTC](https://forum.makecode.com/t/how-to-make-turrets-shoot-like-a-bullet-hell-type-game/11248/5 "2021-12-15T06:52:15Z")

</div>

1. please clarify more. I do not understand what you mean by, “variable linked with”, as I do not recall the combat form variable being “link” with anything.
2. [https://github.com/felixtsu/pxt-sight](https://github.com/felixtsu/pxt-sight) use this extension
